bpk-component-section-list

4.1.2 • Public • Published

bpk-component-section-list

Backpack section list component.

Installation

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

Usage

import React from 'react';
import BpkSectionList, { BpkSectionListSection, BpkSectionListItem } from 'bpk-component-section-list';

export default () => (
  <BpkSectionList>
    <BpkSectionListSection headerText="Cities">
      <BpkSectionListItem>Tokyo</BpkSectionListItem>
      <BpkSectionListItem onClick={() => {}}>Rio de Janeiro</BpkSectionListItem>
      <BpkSectionListItem href="#">London</BpkSectionListItem>
    </BpkSectionListSection>
  </BpkSectionList>
);

Props

BpkSectionList

Property PropType Required Default Value
children node true -

BpkSectionListSection

Property PropType Required Default Value
children node true -
headerText string false null

BpkSectionListItem

Property PropType Required Default Value
children node true -
blank bool false false
className string false null
href string false null
onClick func false null

Versions

Current Tags

Version History

Package Sidebar

Install

npm i bpk-component-section-list

Weekly Downloads

7

Version

4.1.2

License

Apache-2.0

Unpacked Size

34.8 kB

Total Files

18

Last publish

Collaborators

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