List component
A List component
Install
npm i @wethecurious/wtc-ui-library
Usage
Import it into your project
import { List } from '@wethecurious/wtc-ui-library'
<List
content={[
{
isSelected: true,
label: 'label one',
sub: [{ label: 'sub one', label: 'sub two' }]
},
{
label: 'label two',
sub: [{ label: 'sub one2', label: 'sub two2' }]
},
{
label: 'label three'
}
]}
/>
Props
Prop | Description | Default |
---|---|---|
content | An array of ListItems { label: string, isSelected: boolean, sub: ListItem[] } |