Skip to content

Files

Latest commit

Nov 2, 2017
797820c · Nov 2, 2017

History

History
This branch is 5865 commits behind Skyscanner/backpack:main.

bpk-component-radio

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 string true -
white bool false false