import type React from 'react'; /** * 单选按钮组件属性 */ export interface Props { /** * 是否被选中 */ checked?: boolean; /** * 是否不可用 */ disabled?: boolean; /** * 是否只读 */ readOnly?: boolean; /** * input的其它属性 */ inputProps?: Record; /** * ref属性 */ inputRef?: React.RefObject; /** * name属性 */ name?: string; /** * 值发生变化的回调函数 */ onChange?: (checked: boolean | any) => void; /** * 键盘事件 */ onKeyDown?: (event: React.KeyboardEvent) => void; /** * 点击时的回调函数 */ onClick?: (event: React.MouseEvent) => void; /** * tabIndex属性 */ tabIndex?: number; /** * 单选框的值 */ value?: string; /** * 是否默认选中 */ defaultChecked?: boolean; /** * 添加自定义类名 */ className?: string; /** * 指定颜色 */ color?: string; /** * 给input元素应用上样式类 */ inputClassName?: string; /** * true 表示是密集模式 */ dense?: boolean; } /** * 单选按钮组件 * * @param props 单选按钮组件的属性 */ declare const RadioButton: React.FC; export default RadioButton;