UNPKG

585 BTypeScriptView Raw
1import * as React from "react";
2import { BoxProps } from "../Box";
3import { IRadio } from "../Radio";
4import { Omit } from "../common-types";
5
6export interface IRadioButtonGroup {
7 name?: IRadio["name"];
8 children?: React.ReactNode;
9 defaultValue?: IRadio["value"];
10 value?: IRadio["value"];
11 onChange?: (value: IRadio["value"]) => void;
12 spacing?: BoxProps["margin"];
13 isInline?: boolean;
14}
15
16export type RadioButtonGroupProps = IRadioButtonGroup &
17 Omit<BoxProps, "onChange">;
18
19declare const RadioButtonGroup: React.FC<RadioButtonGroupProps>;
20export default RadioButtonGroup;