Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 635 Bytes

File metadata and controls

33 lines (25 loc) · 635 Bytes

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