@ray-js/components
Version:
Ray basic components
28 lines (27 loc) • 851 B
TypeScript
import { BaseProps } from '../types';
export interface RadioProps extends BaseProps {
/**
* @description.en Radio id. When the radio is selected, the radio.group change event carries the value of the radio
* @description.zh radio 标识。当该 radio 选中时,Radio.Group 的 change 事件会携带 radio 的 value
* @default undefined
*/
value?: string;
/**
* @description.en Whether it is currently selected can be set to default
* @description.zh 当前是否选中,可用来设置默认选中
* @default false
*/
checked?: boolean;
/**
* @description.en disabled
* @description.zh 是否禁用
* @default false
*/
disabled?: boolean;
/**
* @description.en color
* @description.zh 颜色
* @default '#007AFF'
*/
color?: string;
}