UNPKG

@react-beauty/ui-radio

Version:

ui-radio

23 lines (22 loc) 702 B
import { ReactNode } from 'react'; interface RadioContextType { hasError: boolean; isDisabled: boolean; isChecked: boolean; isFocused: boolean; radioId: string; value: string; name: string; onChange: (value: string) => void; setIsFocused: (focused: boolean) => void; getAttributes: () => Record<string, boolean | string>; } export declare const useRadio: () => RadioContextType; interface RadioProviderProps { children: ReactNode; hasError?: boolean; isDisabled?: boolean; value: string; } export declare const RadioProvider: ({ children, hasError, isDisabled, value, }: RadioProviderProps) => import("react/jsx-runtime").JSX.Element; export {};