bpk-component-radio

4.1.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i bpk-component-radio

Weekly Downloads

1

Version

4.1.2

License

Apache-2.0

Unpacked Size

29.7 kB

Total Files

12

Last publish

Collaborators

  • anambl
  • skyscanner-koalasquad
  • gert-jan.vercauteren
  • frugoman
  • marianeumayer-skyscanner
  • ojcurt
  • mattface