bpk-component-radio
v4.1.2
Published
Backpack radio button component.
Downloads
1,203
Keywords
Readme
bpk-component-radio
Backpack radio button component.
Installation
npm install bpk-component-radio --save-dev
Usage
import React from 'react';
import BpkRadio from 'bpk-component-radio';
export default () => (
<BpkRadio
name="return"
label="Return"
onChange={() => console.log('radio changed')}
checked
/>
);
Props
| Property | PropType | Required | Default Value | | --------- | -------- | -------- | ------------- | | name | string | true | - | | label | node | true | - | | ariaLabel | string | false | props.label | | disabled | bool | false | false | | white | bool | false | false | | valid | bool | false | null |
Theme Props
radioCheckedColor
Progressive enhancement
On Internet Explorer 11, radio buttons have the standard built-in appearance.