Sidebar

A collapsible navigation sidebar.

Icon collapsible

DashboardProjectsSettings

Right side

InboxDrafts

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.

InboxCalendarSettings

API reference

bui-sidebar

Inputs

PropTypeDefaultDescription
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.

PropTypeDefaultDescription
openbooleantrueWhether the sidebar is expanded. Two-way bindable with `[(open)]` (standalone use).

[buiSidebarMenuButton]

Inputs

PropTypeDefaultDescription
isActivebooleanfalseWhether this item is the current page; sets active styling and `aria-current`.

bui-sidebar-provider

Inputs

PropTypeDefaultDescription
mobileBreakpointstring | numberDEFAULT_MOBILE_BREAKPOINTViewport 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.