Sidebar
A collapsible navigation sidebar.
Icon collapsible
Right side
Scrolling menu
buiSidebarContent is the scrolling region between a pinned header and footer. Without it the sidebar scrolls as a whole — either way an overflowing menu stays reachable, and the icon rail hides its scrollbar rather than losing 16px of a 3.5rem rail to its track.
Icon rail tooltips
Inside a bui-sidebar-provider, a menu button with tooltip labels itself on hover and focus while it is shrunk to the rail, and nowhere else. It is a visual affordance: the label stays in the DOM, so the accessible name never depended on it. Collapse the rail, then hover an icon. mobileBreakpoint moves the off-canvas threshold off Tailwind's md.
API reference
bui-sidebar
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
side | "left" | "right" | 'left' | Edge the sidebar is docked to, which sets its border side. |
collapsible | "icon" | "offcanvas" | 'offcanvas' | Collapse behavior: hide entirely (`offcanvas`) or shrink to an icon rail (`icon`). |
Two-way models
Bind with [(name)], or one-way as an input.
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | true | Whether the sidebar is expanded. Two-way bindable with `[(open)]` (standalone use). |
[buiSidebarMenuButton]
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
isActive | boolean | false | Whether this item is the current page; sets active styling and `aria-current`. |
bui-sidebar-provider
Inputs
| Prop | Type | Default | Description |
|---|---|---|---|
mobileBreakpoint | string | number | DEFAULT_MOBILE_BREAKPOINT | Viewport width below which the sidebar becomes an off-canvas drawer instead of an icon rail. A bare number is read as px; anything else is used as written. |
Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.