UNPKG

@loke/ui

Version:
22 lines (21 loc) 1.04 kB
import { Primitive } from "@loke/ui/primitive"; import { type ComponentPropsWithoutRef } from "react"; declare const createRadioScope: import("@loke/ui/context").CreateScope; type PrimitiveButtonProps = ComponentPropsWithoutRef<typeof Primitive.button>; interface RadioProps extends PrimitiveButtonProps { checked?: boolean; onCheck?(): void; required?: boolean; } declare const Radio: import("react").ForwardRefExoticComponent<RadioProps & import("react").RefAttributes<HTMLButtonElement>>; type PrimitiveSpanProps = ComponentPropsWithoutRef<typeof Primitive.span>; export interface RadioIndicatorProps extends PrimitiveSpanProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const RadioIndicator: import("react").ForwardRefExoticComponent<RadioIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>; export { createRadioScope, Radio, RadioIndicator, }; export type { RadioProps };