UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

33 lines (32 loc) 1.35 kB
import { ThemeProps, WithoutThemeProps } from "../../core/system/index.types.js"; import { GenericsComponent } from "../../core/components/index.types.js"; import "../../core/index.js"; import { UseInputBorderProps } from "../input/use-input-border.js"; import { GroupProps } from "../group/group.js"; import { RadioStyle } from "./radio.style.js"; import { Radio, RadioProps } from "./radio.js"; import { UseRadioGroupProps } from "./use-radio-group.js"; import { ReactElement, ReactNode } from "react"; //#region src/components/radio/radio-group.d.ts interface RadioGroupItem<Y extends string = string> extends RadioProps<Y> { label: ReactNode; } interface RadioGroupRootProps<Y extends string = string> extends Omit<WithoutThemeProps<GroupProps, RadioStyle>, "defaultValue" | "onChange" | "value">, ThemeProps<RadioStyle>, UseRadioGroupProps<Y>, UseInputBorderProps { /** * If provided, generate options based on items. * * @default [] */ items?: RadioGroupItem<Y>[]; } /** * `RadioGroup` is a component that groups `Radio` components. * * @see https://yamada-ui.com/docs/components/radio */ declare const RadioGroupRoot: GenericsComponent<{ <Y extends string = string>(props: RadioGroupRootProps<Y>): ReactElement; }>; //#endregion export { RadioGroupRoot, RadioGroupRootProps }; //# sourceMappingURL=radio-group.d.ts.map