UNPKG

@loke/ui

Version:
26 lines (25 loc) • 1.1 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>> & { displayName: string; }; 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>> & { displayName: string; }; export type { RadioProps }; export { createRadioScope, Radio, RadioIndicator, };