UNPKG

@react-beauty/ui-checkbox

Version:

ui-checkbox

23 lines (22 loc) 741 B
import { ReactNode } from 'react'; interface CheckboxContextType { hasError: boolean; isDisabled: boolean; isChecked: boolean; isFocused: boolean; checkboxId: string; value: string; name: string; onChange: (value: string, checked: boolean) => void; setIsFocused: (focused: boolean) => void; getAttributes: () => Record<string, boolean | string>; } export declare const useCheckbox: () => CheckboxContextType; interface CheckboxProviderProps { children: ReactNode; hasError?: boolean; isDisabled?: boolean; value: string; } export declare const CheckboxProvider: ({ children, hasError, isDisabled, value, }: CheckboxProviderProps) => import("react/jsx-runtime").JSX.Element; export {};