chakra-ui
Version:
Responsive and accessible React UI components built with React and Emotion
22 lines (19 loc) • 588 B
TypeScript
import * as React from "react";
import * as StyledSystem from "styled-system";
import { BoxProps } from "../Box";
export interface IRadioGroup {
id?: string;
name?: string;
children?: React.ReactNode;
defaultValue?: string | number;
value?: string | number;
onChange?: (
event?: React.ChangeEvent<HTMLInputElement>,
value?: string | number
) => void;
spacing?: StyledSystem.MarginRightProps;
isInline?: boolean;
}
export type RadioButtonGroupProps = IRadioGroup & BoxProps;
declare const RadioGroup: React.FC<RadioButtonGroupProps>;
export default RadioGroup;