1.0.14 • Published 3 years ago
cutomized-radio-button v1.0.14
Customized-radio-button
Params
Param | Type | Desctiption |
---|---|---|
name | string (required) | Input name |
label | string (required) | Input label |
value | any (required) | Input value |
description? | string | Description text that is showing under label |
disabled? | boolean | Input disabled (default value is false) |
checked? | boolean | Input checked (default value is false) |
onChange | Function (required) | onChange function |
icon? | JSX.Element | Checked icon |
How to use
<CustomizedRadioButton
id={'NAME'}
name={'NAME'}
value={'VALUE'}
label={'LABEL'}
description={'DESCRIPTION'}
disabled={true | false}
checked={true | false}
onChange={Function()}
icon={JSX.Element}
/>
Example
Figma
Based on TailwindCSS
Contact
me@aaaram.com