@useloops/design-system
Version:
The official React based Loops design system
26 lines (23 loc) • 599 B
TypeScript
import { ReactNode, FunctionComponent } from 'react';
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;
name: string;
value: string;
}
declare const RadioGroup: FunctionComponent<RadioGroupProps>;
export { RadioGroup as default };
export type { RadioGroupProps };