Skip to main content

Selectable List

Renders a vertical list of arbitrary elements, adding a selection checkbox to each row. A controlled array of index values determines which row is currently selected

Storybook Docs

Props

ActionBar takes a <Data> generic type that extends Record<string, unknown>.

NameTypeDefaultDescription
childrenReactElement[]-Arbitrary array of ReactElements to display as a vertical list
selectedIndexesnumber[][]Controlled array of index values, determines which element in the list is shown as selected
onSelectChange(index: number, isSelected: boolean) => void-Called when an element is selected
...--extends Stack props