grommet
Version:
focus on the essential experience
37 lines (32 loc) • 869 B
TypeScript
import * as React from 'react';
import { BoxProps } from '../Box/index';
export interface RadioButtonGroupProps {
children?: Function;
disabled?: boolean;
name: string;
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
options: (
| string
| number
| boolean
| {
disabled?: boolean;
id?: string;
label?: string | React.ReactNode;
value: string | number | boolean;
}
)[];
value?: string | number | boolean | object;
}
export interface RadioButtonGroupExtendedProps
extends RadioButtonGroupProps,
BoxProps,
Omit<
React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
>,
'children' | 'onClick' | 'onChange'
> {}
declare const RadioButtonGroup: React.FC<RadioButtonGroupExtendedProps>;
export { RadioButtonGroup };