Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 620 Bytes

selectable_list.md

File metadata and controls

22 lines (17 loc) · 620 Bytes

Common/SelectableList

An unordered list that can be scrolled through using arrow keys.

<SelectableList onSelect={this.handleSelect}>
    <ListElement>Android feedback</ListElement>
    <ListElement>Customer service feedback</ListElement>
    <ListElement>E-commerce feedback</ListElement>
    <ListElement>Feedback (Sales)</ListElement>
    <ListElement>Feedback (Support)</ListElement>
</SelectableList>

Props

onSelect={function}
Called when an item in the list is selected. Receives the index of the selected item.

CSS

Adds dp-selectable-list to the root element.