UNPKG

@nami-ui/radio

Version:
21 lines (20 loc) 591 B
import { FC, HTMLAttributes } from 'react'; import './radio.scss'; import { RadioValue } from './radio-group-context'; export interface RadioProps extends Omit<HTMLAttributes<HTMLLabelElement>, 'onChange'> { /** 选项值 */ value?: RadioValue; /** 是否选中 */ checked?: boolean; /** 默认是否选中 */ defaultChecked?: boolean; /** 选项说明文本 */ label?: string; /** 禁用 */ disabled?: boolean; /** 只读 */ readOnly?: boolean; /** 选中事件 */ onChange?: () => void; } export declare const Radio: FC<RadioProps>;