UNPKG

@useloops/design-system

Version:

The official React based Loops design system

30 lines (27 loc) 772 B
import { ReactNode, Ref, FunctionComponent } from 'react'; import { StyledRadioProps } from '../Radio/StyledRadio.js'; interface RadioGroupOption { label: string; value: string; } interface RadioGroupOther { label?: string; enabled?: boolean; placeholder?: string; name?: string; } interface RadioGroupProps { options: RadioGroupOption[]; children?: ReactNode; other?: RadioGroupOther; onChange: (value: string) => void; internalChange?: () => void; inputRef?: Ref<any>; name: string; value: string; sizing?: StyledRadioProps['sizing']; noneOfTheseOption?: RadioGroupOption; } declare const RadioGroup: FunctionComponent<RadioGroupProps>; export { RadioGroup as default }; export type { RadioGroupProps };