Layout
Sidebar
A 56px icon rail. The active icon fills and a ◆ travels to it. Routing stays yours: pass active and your link component.
Preview
Installation
// Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { id, label, href, icon }[] | - | Icons are Phosphor components |
| active | string | - | Id of the current item |
| linkComponent | ElementType | "a" | Your router's link |
| logo | ReactNode | - | Top of the rail |