Radio
单选项目。
导入
import { Radio } from '@ray-js/ray';
属性说明
属性 | 类型 | 默认值 | 说明 | 属性 |
---|---|---|---|---|
value | string | radio 标识。当该 radio 选中时,Radio.Group 的 change 事件会携带 radio 的 value | 涂鸦、微信 | |
checked | boolean | false | 当前是否选中 | 涂鸦、微信 |
disabled | boolean | false | 是否禁用 | 涂鸦、微信 |
color | string | '#007AFF' | Radio 的颜色,同 css 的 color | 涂鸦、微信 |
示例代码
基本使用
import React from 'react';
import { Radio } from '@ray-js/components';
export default function () {
return <Radio disabled checked />;
}