bpk-component-list

5.2.2 • Public • Published

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
ariaLabel string false null
ariaLabelledby string false null
title string false null

BpkListItem

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

/bpk-component-list/

    Package Sidebar

    Install

    npm i bpk-component-list

    Weekly Downloads

    382

    Version

    5.2.2

    License

    Apache-2.0

    Unpacked Size

    24.7 kB

    Total Files

    13

    Last publish

    Collaborators

    • mungodewar
    • anambl
    • skyscanner-koalasquad
    • gert-jan.vercauteren
    • frugoman
    • marianeumayer-skyscanner
    • ojcurt
    • mattface