x-radio-list

react xui 单选切换按钮

Usage no npm install needed!

<script type="module">
  import xRadioList from 'https://cdn.skypack.dev/x-radio-list';
</script>

README

x-radio-list

安装

npm install --save x-radio-list

使用

    <RadioList value="1">
    <Radio value="1">aaaa</Radio>
    <Radio value="2">bbb</Radio>
    </RadioList>
    <RadioList value="1">
        <Radio value="1" text="AAA">aaaa</Radio>
        <Radio value="2">bbb</Radio>
    </RadioList>
    <RadioList  disabled={true} disabledCls="disabled" value="1" options={[{value:1,text:"aaa"},{value:2,text:"bbb"}]}>
    </RadioList>

Api

showTitle

是否显示title提示,默认不显示