Application shell
A collapsible sidebar with a workspace switcher, grouped navigation and account menu, a header with breadcrumb and search, and a mobile sheet.
bunx --bun @getweini/cli@latest add avatar breadcrumb button card dropdown-menu icon-button kbd progress sidebarCustomize
- The workspace switcher at the top of the sidebar is a DropdownMenu fed by `workspaces`; it emits `workspaceChange` with the chosen id and shows only the logo in the collapsed rail.
- Pass `current` to control the active page id and accept `navigate` by updating it. When omitted, selection updates locally. Replace the `nav` data with your routes and map `navigate` to your router; the breadcrumb follows the active item.
- The default slot is the page content. Pass `collapsed` to start with the icon rail; the desktop rail and the mobile sheet use the same navigation markup.
- Below 768px the Sidebar becomes an off-canvas Sheet opened by the menu button in the header. The block reads the breakpoint after mount, so server rendering always starts with the desktop layout.
- Navigation icons are inline SVG paths in the `nav` data. Swap the path strings for your own icons; they are decorative, and the label stays available in the collapsed rail.
- The account menu sits in the sidebar footer on desktop and in the header on phones, so it is always one tap away. Edit `copy.account*` and `user` to change it.