bpk-component-radio

v4.1.2
Backpack radio button component.

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.

npm i bpk-component-radio

Metadata

  • Apache-2.0
  • Whatever
  • Backpack Design System
  • released 9/30/2022

Downloads