Section list

Section lists present data as a single-column list of rows that can be divided into groups. They're great for displaying lists of options containing text and controls, as well as linking to additional views or pages.

Default

When the href or onClick prop is provided, section list items get a chevron icon to indicate they lead somewhere.

Storybook failed to load.

bpk-component-section-list

Backpack section list component.

Installation

Check the main Readme for a complete installation guide.

Usage


                                                
                                                import BpkSectionList, { BpkSectionListSection, BpkSectionListItem } from '@skyscanner/backpack-web/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

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

Props

Storybook failed to load.