BIU UI/Blocks/App Shell Inset
Live ScreenFramed Rounded Cards9 Composed Primitives

App Shell Inset

Collapsible sidebar with workspace, menu, projects, and account framing rounded white main and right workspace cards — the signature frame every screen sits in.

ProApp Shell Inset is a BIU UI Pro block — interactive preview is open; @biudev-pro/app-shell-inset Registry access coming soon.
MIT open-source core available today
@/components/ui/biu/app-shell-inset.tsx

Your page goes here

The shell brings both sidebars and the scroll container – put any screen inside.

When to use

Good fit

The signature base frame for an AI assistant, internal tool, or SaaS dashboard where main content and the side work area read as distinct rounded cards on a subtle canvas.

When not to use

Marketing landing pages, apps with deep multi-level navigation trees, or ultra-dense edge-to-edge editors — switch to App Shell Flat for full-bleed hairline layout.

Key capabilities

Core workflows built into the shell out of the box.

Framed rounded-card 3-pane geometry

Borderless sidebar on a subtle #f8f8f8 canvas framing 12px-rounded white main and right workspace cards with an 8px outer inset and 4px inter-card gap.

Drag-resizable panes & icon rail

Smoothly drag-resize both sidebars, double-click dividers to reset, or collapse the left navigation into a 48px icon rail with right-side tooltips.

Composed from BIU UI primitives

Built directly on Avatar, Button, CommandMenu, Dialog, DropdownMenu, EmptyState, IconButton, ScrollArea, and Tooltip.

Multi-tab work area or custom panel

Ships with interactive Terminal, Browser, Notes, and Suggested source tabs — or pass panel + panelTitle for a single inspector pane.

Interactive footer stack & menus

Includes a dismissible stacked promo deck, upward-expanding Getting started checklist with live progress, plus full Workspace & Account submenus.

Container-query responsive drawers

Automatically switches below 900px container width to slide-in overlay drawers with backdrop scrims without relying on window breakpoints.

Usage

Running the shadcn command above installs app-shell-inset.tsx and its BIU UI primitive dependencies directly into @/components/ui/biu/. Mount <BiuTokens /> once at your app root, give the shell a full-height container (such as height: "100dvh"), and render your route inside children.

USAGE / TSX
"use client";
import { AppShellInset } from "@/components/ui/biu/app-shell-inset";
import { EmptyState } from "@/components/ui/biu/empty-state";

export function WorkspacePage() {
  return (
    <div style={{ height: "100dvh" }}>
      <AppShellInset
        workspace="Acme"
        user={{ name: "Alex Morgan", email: "alex@acme.com" }}
        onNavigate={(id) => console.log("navigate", id)}
      >
        <EmptyState
          bare
          tall
          title="Your page goes here"
          description="The shell brings both sidebars and the scroll container – put any screen inside."
        />
      </AppShellInset>
    </div>
  );
}
Open full-screen preview ↗Compare with App Shell Flat →View Empty State docs →

Usage examples

Switch between common configurations — custom right inspector panel, minimal single-sidebar layout, or controlled & localized shell state.

All tasks8 items
Board
Backlog2+
SOLO-7
Schedule first 12 launch posts
Jacob2d ago
SOLO-2
Define month-1 goals & KPIs
Jacob4d ago
Todo2+
SOLO-12
Run comment & DM reply SOP
Jacob1d ago
SOLO-5
Lock 3 core content pillars
Mika1d ago
In progress1+
SOLO-14
Review next-sprint experiments
Jacob6h ago
In review3+
SOLO-4
Audit 10 benchmark accounts
Mika3h ago
SOLO-9
Finalize 30 topic briefs
Scout5h ago
SOLO-10
Brand & compliance review
Jacob1d ago
✦ Ask AI
EXAMPLE / TSX
"use client";
import { useState } from "react";
import { AppShellInset } from "@/components/ui/biu/app-shell-inset";

export function DualRailKanbanShell() {
  const [section, setSection] = useState<"work" | "team">("work");
  return (
    <div style={{ height: 540 }}>
      <AppShellInset
        layout="inset"
        sidebarCollapseMode="hide"
        panel={false}
        sidebarWidth={208}
        header={false}
        flushMain
        sidebarSearch={false}
        sidebarFooter={false}
        promos={[]}
        setupSteps={[]}
        nav={[]}
        rail={
          <div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 6, padding: "8px 0" }}>
            <button type="button" onClick={() => setSection("work")}>Work</button>
            <button type="button" onClick={() => setSection("team")}>Team</button>
          </div>
        }
        sidebarHeader={<strong style={{ fontSize: 13.5 }}>{section === "work" ? "Work" : "Team"}</strong>}
        groups={[
          {
            id: "views",
            label: "Views",
            action: <button type="button" aria-label="New view">+</button>,
            items: [
              { id: "all-tasks", label: "All tasks" },
              { id: "my-work", label: "My work" },
            ],
          },
          {
            id: "projects",
            label: "Projects",
            action: <button type="button" aria-label="New project">+</button>,
            items: [{ id: "p-growth", label: "Q3 Content Loop" }],
          },
        ]}
        topBar={({ toggleSidebar, sidebarCollapsed, railWidth, sidebarWidth }) => (
          <div style={{ display: "flex", alignItems: "center", height: 38 }}>
            <div style={{ width: sidebarCollapsed ? 98 : railWidth + sidebarWidth, paddingInlineStart: 12 }}>
              <button type="button" onClick={toggleSidebar}>
                {sidebarCollapsed ? "Show" : "Hide"}
              </button>
            </div>
            <span>Tasks</span>
          </div>
        )}
        bottomBar={
          <div style={{ width: "100%", display: "flex", justifyContent: "flex-end", padding: "4px 12px", fontSize: 11.5 }}>
            ✦ Ask AI
          </div>
        }
      >
        <div style={{ padding: 16 }}>Kanban columns go here</div>
      </AppShellInset>
    </div>
  );
}

API Reference

All props and exported TypeScript types shared by AppShellInset and AppShellFlat.

AppShellInset

PropTypeDefaultDescription
layout"flat" | "inset""inset" (AppShellInset) / "flat" (AppShellFlat)Controls framed rounded-card geometry ("inset", 8px outer gap & 12px card radius) vs edge-to-edge hairline geometry ("flat").
sidebarCollapseMode'rail' | 'hide''rail'Controls how the left sidebar collapses: 'rail' shrinks to a 48px icon rail; 'hide' slides cleanly to 0px (ideal for tabbed desktop shells).
topBarReactNode | ((ctx: AppShellTopBarContext) => ReactNode)—Full-width top chrome / document tab strip rendered above the panes; render function receives sidebarCollapsed, toggleSidebar, railWidth, sidebarWidth, and resizing for lockstep tab alignment.
bottomBarReactNode—Optional full-width slim status bar rendered beneath the workspace panes (e.g. AI assistant trigger or sync status).
rail / railWidthReactNode / number— / 52Persistent far-left primary icon rail for dual-rail shells; stays anchored when the secondary sidebar hides in sidebarCollapseMode="hide".
sidebarHeader / sidebarSearchReactNode | false / booleanWorkspace menu / trueReplaces or hides the left sidebar header (false) and toggles the built-in Search… ⌘K button (handy when Search lives inside rail).
sidebarWidthnumber264Initial expanded width of the left sidebar in pixels (204–360px drag range).
workspaceWidthnumber356Initial expanded width of the right workspace panel in pixels (284–460px drag range).
workspacestring"Acme"Workspace name shown in the top-left switcher; its first character becomes the monogram badge.
userAppShellUser{ name: "Alex Morgan", email: "alex@acme.com" }Signed-in account rendered at the bottom of the sidebar and in the account menu header.
navreadonly AppShellNavItem[]New chat, Folders, IntegrationsPrimary navigation items rendered above the Projects section.
groupsreadonly AppShellNavGroup[]—Multi-section sidebar groups (with optional collapsible headers) rendered below nav, replacing the default projects list.
projectsreadonly string[]["Q3 Campaign", "Brand assets", "Hiring", "Research"]Project folder entries rendered under the Projects heading when groups is not provided; pass [] to omit.
sidebarFooterReactNode | (({ collapsed }) => ReactNode) | falseDefault account menuReplaces the bottom account menu with custom sidebar footer links/controls (auto-hides on 48px icon rail unless passed as a render function ({ collapsed }) => ...), or pass false to hide.
flushMainbooleanfalseRemoves default 24px padding and outer <ScrollArea> on <main> so inner split panes (such as <ResizablePanelGroup>) fit edge-to-edge.
activestring—Controlled active navigation id (or "project:<name>" for project items).
defaultActivestring"new-chat"Initial active navigation id when used uncontrolled.
onNavigate(id: string) => void—Fired when the user clicks a sidebar nav item, project, title menu entry, or command result.
header{ title: ReactNode; actions?: ReactNode } | falseActive title picker + Share & MoreCustom main-pane top bar title and right-side actions; pass false to hide the main header.
childrenReactNode<EmptyState bare tall />Main scrollable page content rendered in the center column.
panelReactNode | false—Replaces the default tabbed Tools/Suggested right workspace with custom single-pane content, or pass false to omit the right workspace and its reopen toggle entirely.
panelTitlestring"Workspace"Header label shown in the right work area when panel is provided.
promosreadonly AppShellPromoCard[]2 stacked cardsDismissible stacked announcement cards pinned above Getting started; pass [] to hide.
setupStepsreadonly AppShellSetupStep[]8 checklist tasks (3 groups)Tasks powering the upward-expanding Getting started checklist and progress bar; pass [] to hide.
toolsreadonly AppShellToolItem[]Terminal, Browser, NotesTool rows inside the right workspace New tab view (shortcut crossfades to ⋯ menu on hover).
suggestedreadonly AppShellSuggestedItem[]4 suggested documentsSuggested source cards inside the right workspace New tab view (reveals ↗ on hover).
sidebarCollapsedboolean—Controlled collapsed state for the left sidebar (264px ↔ 48px icon rail).
defaultSidebarCollapsedbooleanfalseInitial collapsed state for the left sidebar when uncontrolled.
onSidebarCollapsedChange(collapsed: boolean) => void—Called when the left sidebar is collapsed or expanded via button, drag, or keyboard.
workspaceOpenboolean—Controlled visibility of the right workspace column (356px ↔ 0px).
defaultWorkspaceOpenbooleantrueInitial visibility of the right workspace column when uncontrolled.
onWorkspaceOpenChange(open: boolean) => void—Called when the right workspace is closed or reopened from the header.
onAction(action: string) => void—Callback fired for shell menu actions (invite, share, changelog, language, appearance, logout, etc.).
labelsPartial<AppShellFlatLabels>English defaultsOverrides every visible label, placeholder, and aria-label for localization.
className / stylestring / CSSProperties—Forwarded to the outer container-query frame ([data-biu="app-shell-flat-frame"]).

AppShellNavItem, AppShellNavGroup & AppShellUser

Data shapes for primary sidebar navigation entries, collapsible multi-section groups, and the account footer.

FieldTypeDefaultDescription
item.idstringRequiredUnique identifier passed to active and onNavigate.
item.labelstringRequiredVisible row label and collapsed icon-rail tooltip text.
item.iconReactNodeFolder icon15–16px decorative icon rendered beside the label.
item.badge / shortcutstring | number / string—Optional right-aligned count badge or subtle keycap shortcut (e.g. "C").
group.collapsible / defaultOpenbooleanfalse / trueEnables folding/unfolding a sidebar group with a rotating chevron.
group.badge / actionstring | number / ReactNode—Optional counter beside the group heading and trailing action control (e.g. a + button).
user.name / email / avatarstring—Account display name, secondary email, and optional avatar image URL.

AppShellPromoCard & AppShellSetupStep

Sidebar footer announcement deck and interactive checklist items.

FieldTypeDefaultDescription
promo.idstringRequiredStable key for dismissing cards from the top of the deck.
promo.eyebrowstringRequiredAccent label above the headline (also peeks on the stacked card behind).
promo.titlestringRequiredMain announcement title.
promo.linkLabelstring—Optional bottom footer link row (e.g. "Full changelog").
step.groupstringRequiredAccordion section name grouping related setup tasks.
step.labelstringRequiredTask description paired with circular check / hollow / dashed status ring.
step.done / disabledbooleanfalseInitial completion state (strikethrough + blue check) or locked state (dashed ring).

AppShellToolItem & AppShellSuggestedItem

Rows inside the default right workspace New tab screen.

FieldTypeDefaultDescription
tool.idstringRequiredBuilt-in kinds ("terminal", "browser", "notes") open interactive surfaces.
tool.labelstringRequiredTool title and tab name when opened.
tool.shortcutstring—Right-aligned keycap badge that crossfades to the ⋯ menu button on hover.
suggested.monogramstringRequiredSingle-character badge shown inside the 26×26 source tile.
suggested.titlestringRequiredSource document headline; hovering reveals the diagonal ↗ indicator.
suggested.domainstringRequiredSource host shown below the title (e.g. "linear.app").
suggested.summarystring—Excerpt displayed when the source is opened in a workspace tab.

Keyboard, accessibility & responsive behavior

Every navigation item, project, collapse toggle, and workspace tab is a native button with accessible labeling. Folded to the 48px icon rail, each icon names itself via a right-side <Tooltip />. Below 900px container width (@container asf), both sidebars automatically switch to slide-in overlay drawers with a backdrop scrim.

ShortcutBehavior
⌘K / Ctrl + KOpens the scoped Command Menu search dialog when focus is inside the shell.
← / → (on divider)Resizes the focused sidebar or workspace handle in 12px increments.
Shift + ← / →Resizes the focused divider handle in 32px increments.
Enter (on divider)Toggles sidebar icon-rail collapse or right workspace open/closed state.
Double-click dividerResets the sidebar (264px) or right workspace (356px) back to its default width.
EscapeCloses any open dropdown menu, submenu, or Command Menu dialog and restores focus.

Included Primitives

Installing app-shell-inset automatically pulls these BIU UI components through the shadcn Registry: