An accessible radio form control.
npm install boundless-radioTHIS IS AN AUTOGENERATED FILE. EDIT INDEX.JS INSTEAD.
Radio is implemented as a "controlled input", meaning it is a direct representation of the model data passed inside. User interaction will bubble changes in the form of onSelected that a controller view must intercept and apply against the data provider.
_Note: only top-level props are in the README, for the full list check out the website._
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | | | passthrough to the HTML name attribute on the .b-radio node |
| value | | | passthrough to the HTML value attribute on the .b-radio node |
| Name | Type | Default Value | Description |
|---|---|---|---|
| inputProps | | | any React-supported attribute; applied to the .b-radio node |
| label | | | any React-renderable content, most commonly a simple string |
| labelProps | | | any React-supported attribute; applied to the .b-radio-label node |
| onSelected | | | called when the element becomes selected; backing data must be updated to persist the state change |
| selected | | | determines the activation state of the radio control, see React "controlled inputs") |