import React, { FC, ReactNode, Component } from "react"; import { Argument } from "classnames"; declare type RadioButtonProps = { /** * The value of the current RadioButton. The type should match the type of the value in the RadioGroup component. */ value?: string | undefined; /** * Whether or not the RadioButton is disabled.. */ disabled?: boolean; /** * 展示的标题 */ label?: String | Component; /** * 展示的描述 */ description?: ReactNode; /** * 设置额外的 class */ className?: Argument; /** * 设置按钮大小 */ size?: "xs" | "sm" | "base" | "lg" | "xl"; }; declare type RadioButtonGroupProps = { /** * 设置按钮大小 */ size?: "xs" | "sm" | "base" | "lg" | "xl"; /** * Improving the semantics and accessibility of your custom selector. */ label?: string | Component; /** * The current selected value in the `RadioButtonGroup`. */ value?: string | undefined; /** * Whether or not the RadioButtonGroup and all of its RadioButtonGroup's are disabled.. */ disabled?: boolean; /** * The function called to update the RadioGroup value. */ onChange?: (value: string) => void; /** * 设置额外的 class */ className?: Argument; }; declare const RadioButtonGroup: FC & { Option: React.FC; }; export default RadioButtonGroup;