Skip to content

Files

Latest commit

author
George333123
Sep 12, 2017
cc39efb · Sep 12, 2017

History

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

bpk-component-badge

bpk-component-badge

Backpack badge component.

Installation

npm install bpk-component-badge --save-dev

Usage

import React from 'react';
import BpkBadge from 'bpk-component-badge';

export default () => (
  <BpkBadge>My Badge</BpkBadge>
);

Props

Property PropType Required Default Value
centered bool false null
docked 'left', 'right' false null