Sidebar header
Area-context block at the top of the sidebar. Stacks one or more card-style rows — current organisation, partner, branch — each acting as a switcher trigger when the user has more than one option to choose from.
Canonical
The most-used shape. Partner area renders two rows: partner identity and current branch. Conveyancing renders one row for the current organisation.
Variants
3 variantsStates
2 statesProps
SidebarHeaderRow| Property | Type | Notes |
|---|---|---|
| Label | string | Eyebrow above the title. |
| Title | string | Primary text. |
| Avatar | SidebarHeaderAvatar? | Leading glyph. Null renders the generic building icon (branch row). |
| Tooltip | string? | Shown on hover while the sidebar is collapsed. |
| SwitcherEvent | string? | Alpine window event dispatched on click. Null makes the row a static card. |
| SwitcherHref | string? | Fallback URL for ctrl/cmd-click. |
Do & don't
Sidebar collapse toggle
Renders the animated chevron-into-wall SVG used inside the sidebar collapse button.
Flips 180° via Alpine when the surrounding scope sets sidebarCollapsed = true.
Click to flip; rotation animates with a 400ms transition. Hover the icon to see the chevron + shaft nudge.