Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 814 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 814 Bytes

bpk-component-list

Backpack list component.

Installation

Check the main Readme for a complete installation guide.

Usage

import { BpkList, BpkListItem } from '@skyscanner/backpack-web/bpk-component-list';

export default () => (
  <BpkList>
    <BpkListItem>Apples</BpkListItem>
    <BpkListItem>
      Oranges
      <BpkList ordered>
        <BpkListItem>Tangerines</BpkListItem>
        <BpkListItem>Nectarines</BpkListItem>
        <BpkListItem>Satsuma</BpkListItem>
      </BpkList>
    </BpkListItem>
    <BpkListItem>Pears</BpkListItem>
  </BpkList>
);

Props

Check out the full list of props on Skyscanner's design system documentation website.