UNPKG

@react-beauty/ui-radio

Version:

ui-radio

20 lines (19 loc) 667 B
import { ReactNode } from 'react'; interface RadioGroupContextType { name: string; selectedValue?: string; onChange: (value: string) => void; isDisabled: boolean; hasError: boolean; } export declare const useRadioGroup: () => RadioGroupContextType | undefined; interface RadioGroupProviderProps { children: ReactNode; name: string; selectedValue?: string; onChange: (value: string) => void; isDisabled: boolean; hasError: boolean; } export declare const RadioGroupProvider: ({ children, name, selectedValue, onChange, isDisabled, hasError, }: RadioGroupProviderProps) => import("react/jsx-runtime").JSX.Element; export {};