Skip to content

Files

Latest commit

author
Ana Belciug
Feb 21, 2022
cc0aa98 · Feb 21, 2022

History

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

bpk-component-list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

bpk-component-list

Backpack list component.

Installation

npm install bpk-component-list --save-dev

Usage

import React from 'react';
import { BpkList, BpkListItem } from '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

BpkList

Property PropType Required Default Value
children - true -
ordered bool false false
className string false null

BpkListItem

Property PropType Required Default Value
children - true -
className string false null