macOS
SourceList
Finder-style sidebar list with icons / labels / counts and grouped headings. The classic macOS sidebar pattern.
Examples
Library + Smart lists
<SourceList items={[
{type: 'heading', label: 'Library'},
{value: 'library', label: 'All Books', count: 1204},
...
]} bind:value />Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | SourceItem[] | — | Headings or selectable rows. |
value | T | — | Bindable selected value. |
onSelect | (v: T) => void | — | Fires when a row is picked. |
Install
CLI
npx @a3tai/mittsu add source-list