0.1.0 • Published 9 years ago
rctui-checkbox v0.1.0
checkbox
react ui checkbox component
checkbox online example checkbox group online example
Install
npm install rctui-checkbox
Usage
import { Checkbox, CheckboxGroup } from 'rctui-checkbox'
<Checkbox
className={string} // class
text="string"
value={any}
checked={bool} // default value is false
readOnly={bool} // default value is false
onChange={function}
/>
<CheckboxGroup
className={string}
data={array}
sep={string|null} // default value is ","
inline={bool} // default value is false, if true, checkbox display = inline-block
onChange={function}
readOnly={bool} // default value false
textTpl="string" // text template, default value is "{text}"
valueTpl="string" // return value template,default value is "{id}"
value={string|array}
/>
0.1.0
9 years ago