Skip to content
PreviewSelect a sidebar row to switch pages inside the frame.
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, IconButton, Menu,
  MenuContent, MenuItem, MenuTrigger,
} from "@arcadia/ui";

function WithSidebar({ container }: { container: HTMLElement }) {
  const [view, setView] = useState<View>("Settings");
  const [workspace, setWorkspace] = useState<WorkspaceName>("Workspace");
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label={workspace} head={<Workspace selected={workspace} onSelect={setWorkspace} />} groups={groupsFor(view, setView)} />;
  return (
    <AppFrame
      rootStyle={page.frame}
      inert={nav.shown}
      bar={(
        <AppBar
          product="Product" home={HERE} hideProductName={nav.markOnly} end={nav.toggle}
          crumbs={<AppCrumbs items={[{ label: workspace, href: HERE }, { label: view }]} />}
          switcher={<Switcher />} session={<Person />}
        />
      )}
      sidebar={!nav.compact && sidebar}
    >
      <AppPanel title={view} viewKey={view} action={(
        <Menu>
          <MenuTrigger render={<IconButton icon="more" label="Page menu" size="md" />} />
          <MenuContent align="end">
            <MenuItem onClick={() => setView("Overview")}>Overview</MenuItem>
            <MenuItem onClick={() => setView("Activity")}>Activity</MenuItem>
            <MenuItem onClick={() => setView("Members")}>Members</MenuItem>
            <MenuItem onClick={() => setView("Settings")}>Settings</MenuItem>
          </MenuContent>
        </Menu>
      )}>
        {view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}
      </AppPanel>
      {nav.sheet(sidebar)}
    </AppFrame>
  );
}

TSX
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, AppSwitcher, Input,
  SessionMenu, SettingsGroup, SettingsPage, SettingsRow,
} from "@arcadia/ui";

<AppFrame
  bar={(
    <AppBar
      product="Crew" home="/"
      crumbs={<AppCrumbs items={[{ label: "Workspace", href: "/" }, { label: "Settings" }]} />}
      switcher={<AppSwitcher current="Crew" />}
      session={<SessionMenu name={person.name} address={person.address} account={account} theme={theme} onThemeChange={setTheme} onSignOut={signOut} />}
    />
  )}
  sidebar={(
    <AppSidebar aria-label="Workspace" groups={[{ items: [{ id: "overview", label: "Overview", href: "/" }, { id: "settings", label: "Settings", href: "/settings", current: true }] }]} />
  )}
>
  <AppPanel title="Settings" viewKey={path}>
    <SettingsPage>
      <SettingsGroup label="Workspace">
        <SettingsRow label="Name" control={<Input aria-label="Name" defaultValue="Workspace" />} />
      </SettingsGroup>
    </SettingsPage>
  </AppPanel>
</AppFrame>

Use this frame for signed-in pages. Public pages keep the website frame.

Use AppShell to compose the bar, sidebar and panel.

Use arcadiaHome when the mark and product name link to different places.

The sidebar opens when the panel has room, unless navOpen controls it. After the first toggle, resizing the window preserves that choice.

Control the right pane with paneOpen. onPaneWidthChange returns the clamped width and frame share.

Use navWidth and onNavWidthChange to persist sidebar width. navResizable removes the built-in grip when false; navGrip supplies a custom one.

Use the desktop options to mark drag regions, reserve corner space and align the bar with the panel.

Place overlays beside AppFrame; set inert while they cover its panel.

The frame clears the on-screen keyboard and exposes its live height.

Examples

App shell

Pass crumbs, sidebar and panel to AppShell.

Preview
import { AppShell } from "@arcadia/ui";

<AppShell
  product={PRODUCTS[0]!}
  apps={PRODUCTS}
  crumbs={[{ label: "Workspace" }, { label: "Members" }]}
  bell={{ count: { unread: 2, waiting: 1 }, products: PRODUCTS }}
  session={<Person />}
  sidebar={{
    "aria-label": "Workspace",
    groups: [{ items: [{ id: "overview", label: "Overview" }, { id: "members", label: "Members", current: true }] }],
  }}
  panel={{ title: "Members" }}
>
  <Placeholder title="Members" />
</AppShell>

Breadcrumb menu

Use renderMenuTrigger to open a menu from a parent crumb.

Preview

Product mark

Use hideProductName to keep just the named home link.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, Menu, MenuContent, MenuRadioGroup,
  MenuRadioItem, MenuTrigger,
} from "@arcadia/ui";

function MarkOnly() {
  const [team, setTeam] = useState("Orchard");
  return <AppFrame bar={<AppBar product="Product" home={HERE} hideProductName crumbs={<AppCrumbs items={[
    { label: team, renderMenuTrigger: button => <Menu modal={false}>
      <MenuTrigger render={button} aria-label={`${team}, switch team`} />
      <MenuContent>
        <MenuRadioGroup value={team} onValueChange={setTeam}>
          {["Harbour Lab", "Orchard", "Studio North"].map(name => <MenuRadioItem key={name} value={name}>{name}</MenuRadioItem>)}
        </MenuRadioGroup>
      </MenuContent>
    </Menu> },
    { label: "Overview" },
  ]} />} switcher={<Switcher />} session={<Person />} />}><AppPanel title={team} viewKey={team} /></AppFrame>;
}

Breadcrumb status

Add a count or status mark after the crumb label.

Preview
import { AppBar, AppCrumbs, AppFrame, AppPanel, Chip } from "@arcadia/ui";

<AppFrame
  bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[
    { label: "Arcadia", href: HERE, mark: { node: <Chip variant="outline" size="sm" tone="muted">2</Chip>, label: "2 invitations" } },
    { label: "Members" },
  ]} />} switcher={<Switcher />} session={<Person />} />}
>
  <AppPanel title="Members" />
</AppFrame>

Breadcrumb action

Use onClick instead of href for a crumb action.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, Avatar, AppFrame, AppPanel, characterFromId,
} from "@arcadia/ui";

function CrumbChain() {
  const [at, setAt] = useState("Tighten the refund rounding");
  const go = (label: string) => () => setAt(label);
  return (
    <AppFrame
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[
        { label: "Atlas", leading: <Avatar kind="agent" avatar={characterFromId("agt_atlas_ada")} name="Atlas" size="text" aria-hidden />, onClick: go("Atlas") },
        { label: "Plan the release", leading: "folder", onClick: go("Plan the release") },
        { label: at, leading: "chat" },
      ]} />} switcher={<Switcher />} session={<Person />} />}
    >
      <AppPanel title={at} viewKey={at} />
    </AppFrame>
  );
}

Current page action

Use current when the last crumb contains a control.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, Button, Input,
} from "@arcadia/ui";

function CrumbCurrent() {
  const [name, setName] = useState("Tighten the refund rounding");
  const [editing, setEditing] = useState(false);
  return (
    <AppFrame
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs
        items={[{ label: "Plan the release", leading: "folder", href: HERE }, { label: "Billing", leading: "folder", href: HERE }]}
        current={editing
          ? <Input aria-label="Chat name" size="sm" autoFocus value={name} onValueChange={setName} onBlur={() => setEditing(false)} onKeyDown={(e) => { if (e.key === "Enter" || e.key === "Escape") setEditing(false); }} />
          : <Button variant="ghost" size="sm" icon="pencil" onClick={() => setEditing(true)}>{name}</Button>}
      />} switcher={<Switcher />} session={<Person />} />}
    >
      <AppPanel title={name} viewKey={name} />
    </AppFrame>
  );
}
PreviewParent crumbs give way before the current page control.

Folded path

Use fold="middle" to keep the first and last levels visible.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, Avatar, AppFrame, AppPanel, Button, characterFromId,
} from "@arcadia/ui";

function CrumbFold() {
  const [at, setAt] = useState("Tighten the refund rounding");
  const go = (label: string) => () => setAt(label);
  return (
    <AppFrame
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs
        fold="middle"
        items={[
          { label: "Atlas", leading: <Avatar kind="agent" avatar={characterFromId("agt_atlas_ada")} name="Atlas" size="text" aria-hidden />, onClick: go("Atlas") },
          { label: "Plan the release", leading: "folder", onClick: go("Plan the release") },
          { label: "Billing rework", leading: "folder", onClick: go("Billing rework") },
          { label: "Refund rules", leading: "folder", onClick: go("Refund rules") },
        ]}
        current={<Button variant="ghost" size="sm" icon="chat">{at}</Button>}
      />} switcher={<Switcher />} session={<Person />} />}
    >
      <AppPanel title={at} viewKey={at} />
    </AppFrame>
  );
}
PreviewOpen the fold to see the hidden levels.

No sidebar

Leave out the sidebar to give the panel the full width.

Preview
import {
  AppBar, AppFrame, AppPanel, IconButton, ScrollArea, Textarea,
} from "@arcadia/ui";

<AppFrame
  rootStyle={page.frame}
  bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}
>
  <AppPanel title="Messages" fill>
    <ScrollArea rootStyle={page.stream} viewportProps={{ role: "log", "aria-label": "Messages" }}>
      <div {...sx("app-messages", page.messages)}>
        {Array.from({ length: 12 }, (_, i) => (
          <p key={i} {...sx("app-message", page.message)}>{`Message ${i + 1}: the stream scrolls on its own; the field under it stays.`}</p>
        ))}
      </div>
    </ScrollArea>
    <div {...sx("app-foot", page.foot)}>
      <Textarea aria-label="Message" placeholder="Write a message" minRows={1} maxRows={6} rootStyle={page.field} />
      <IconButton icon="arrow-up" label="Send" variant="inverse" size="lg" />
    </div>
  </AppPanel>
</AppFrame>

Centred header

Use centred to align the head and content column.

Preview
import { AppBar, AppFrame, AppPanel } from "@arcadia/ui";

<AppFrame rootStyle={page.frame} bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
  <AppPanel title="Settings" readout="Saved" centred="settings">
    <SettingsSample />
  </AppPanel>
</AppFrame>

Page subtitle

Use subtitle when the page title needs more context.

Preview
import { AppBar, AppFrame, AppPanel, IconButton } from "@arcadia/ui";

<AppFrame bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
  <AppPanel title="Design review" subtitle="What the board's next version must settle, and who decides it." action={<IconButton icon="more" label="Page menu" size="md" />}>
    <Placeholder title="Chat" />
  </AppPanel>
</AppFrame>

Page actions

Quiet actions come before the primary action.

Preview
import { AppBar, AppFrame, AppPanel, IconButton } from "@arcadia/ui";

<AppFrame bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
  <AppPanel
    title="Design review"
    actions={<><IconButton icon="search" label="Search this chat" size="md" /><IconButton icon="team" label="Members" size="md" /></>}
    action={<IconButton icon="more" label="Chat menu" size="md" />}
  >
    <Placeholder title="Chat" />
  </AppPanel>
</AppFrame>

Compact sidebar

Use density="compact" for a tighter sidebar with full touch targets.

In a navigation sheet, surface="sidebar" keeps the sheet distinct from menus it opens. Use kind: "section" for a foldable heading you can reorder.

Group action

An optional action sits beside the group heading.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, IconButton,
} from "@arcadia/ui";

function GroupAction() {
  const [chat, setChat] = useState<string>("Launch notes");
  return (
    <AppFrame
      rootStyle={page.frame}
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[{ label: "Chats", href: HERE }, { label: chat }]} />} switcher={<Switcher />} session={<Person />} />}
      sidebar={(
        <AppSidebar
          aria-label="Workspace"
          groups={[
            { key: "views", items: [{ id: "overview", label: "Overview", onSelect: () => {} }, { id: "members", label: "Members", onSelect: () => {} }] },
            {
              label: "Conversations about the platform team",
              action: <IconButton icon="plus" size="xs" tone="muted" label="New chat" />,
              items: CHATS.map((label, index) => ({
                id: label, label, current: chat === label, onSelect: () => setChat(label),
                description: index === 1 ? "Interview notes and open roles for the platform team" : undefined,
              })),
            },
          ]}
        />
      )}
    >
      <AppPanel title={chat} viewKey={chat}><Placeholder title="Chat" /></AppPanel>
    </AppFrame>
  );
}

Group filters

Place search and filters beneath the group heading.

Preview
import { useState } from "react";
import { AppSidebar, Button, Chip, Input } from "@arcadia/ui";

function GroupBar() {
  const [agents, setAgents] = useState(false);
  return (
    <div {...sx("app-head-sample", page.headroom)}>
      <AppSidebar
        aria-label="Workspace"
        groups={[
          {
            key: "messages", label: "Messages",
            bar: (
              <>
                <Button size="xs" variant="ghost" icon="plus">New message</Button>
                <Chip variant="outline" pressed={agents} onPressedChange={setAgents}>My agents</Chip>
              </>
            ),
            items: [{ id: "leo-marsh", label: "Leo Marsh", href: HERE }, { id: "hana-okafor", label: "Hana Okafor", href: HERE }],
          },
          {
            key: "teams", label: "Teams",
            bar: <Input variant="bar" size="sm" leadingIcon="search" aria-label="Search teams" placeholder="Search teams" />,
            items: [{ id: "launch-week", label: "Launch week", href: HERE }, { id: "platform", label: "Platform", href: HERE }],
          },
        ]}
      />
    </div>
  );
}

Row menu

Right-click a row or use its trailing menu button.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, MenuItem,
} from "@arcadia/ui";

function RowMenu() {
  const [view, setView] = useState<View>("First project");
  const menu = (label: View) => (
    <>
      <MenuItem onClick={() => setView(label)}>Open here</MenuItem>
      <MenuItem>Copy link</MenuItem>
      <MenuItem>Open in a new window</MenuItem>
    </>
  );
  const item = (label: View) => ({ id: label, label, current: view === label, onSelect: () => setView(label), menu: menu(label) });
  return (
    <AppFrame
      rootStyle={page.frame}
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[{ label: "Projects", href: HERE }, { label: view }]} />} switcher={<Switcher />} session={<Person />} />}
      sidebar={<AppSidebar aria-label="Workspace" groups={[{ label: "Projects", items: [item("First project"), item("Second project")] }]} />}
    >
      <AppPanel title={view} viewKey={view}><Placeholder title="Project" /></AppPanel>
    </AppFrame>
  );
}

Controls at the foot

Move search, the switcher, bell and avatar to the sidebar foot.

Preview
import { useState } from "react";
import { AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar } from "@arcadia/ui";

function ControlsAtFoot({ open = true, separateHomes = false }: { open?: boolean; separateHomes?: boolean }) {
  const [view, setView] = useState<View>("Overview");
  const [nav, setNav] = useState(open);
  return (
    <AppFrame
      rootStyle={page.frame}
      navOpen={nav}
      onNavOpenChange={setNav}
      rail={open ? false : <FootRail />}
      bar={<AppBar product="Crew" home={HERE} arcadiaHome={separateHomes ? "/" : undefined} hideProductName crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />} />}
      sidebar={<AppSidebar aria-label="Crew" head={<Workspace />} groups={groupsFor(view, setView)} foot={<FootControls />} />}
    >
      <AppPanel title={view} viewKey={view}>{view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}</AppPanel>
    </AppFrame>
  );
}
PreviewWith the column open, controls sit in one row.
PreviewWith the column closed, controls stack in the rail.

Sidebar widths

Change the width and toggle the sidebar to compare states.

Preview
Skip to content
Product

Settings

Workspace

Name
Key
WKS
Email updates
Language
Description

Data

Members
4
Export Every project, as one file
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, Button, Slider,
} from "@arcadia/ui";

function Widths() {
  const [view, setView] = useState<View>("Settings");
  const [width, setWidth] = useState(1071);
  const [pane, setPane] = useState(false);
  const [nav, setNav] = useState<boolean | null>(null);
  return (
    <div {...sx("app-widths", page.widths)}>
      <div {...sx("app-width-controls", page.widthControls)}>
        {WIDTHS.map((preset) => (
          <Button
            key={preset.label} size="sm" variant="secondary"
            pressed={width === preset.width && ("pane" in preset ? preset.pane : false) === pane && ("nav" in preset ? preset.nav : nav === null)}
            onClick={() => { setWidth(preset.width); setPane("pane" in preset && preset.pane); setNav("nav" in preset ? preset.nav : null); }}
          >
            {preset.label}
          </Button>
        ))}
        <div {...sx("app-width-field", page.widthField)}>
          <Slider
            label="Frame width" min={340} max={1600} step={1} value={Math.min(1600, width)} valueText={(v) => `${v} pixels`}
            onValueChange={(v) => { setWidth(v); }}
          />
        </div>
      </div>
      <div {...sx("app-room", page.room)}>
        <div style={vars({ "--app-sample-width": `${width}px` })} {...sx("app-window", page.window, page.resizeSample)}>
          <AppFrame
            rootStyle={page.frame}
            rail={<Rail />}
            sidebar={<AppSidebar aria-label="Workspace" head={<Workspace />} groups={groupsFor(view, setView)} />}
            pane={<Pane close={() => setPane(false)} />}
            paneLabel="Review"
            paneOpen={pane}
            onPaneOpenChange={setPane}
            navOpen={nav ?? undefined}
            onNavOpenChange={setNav}
            bar={(
              <AppBar
                product="Product" home={HERE}
                crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />}
                switcher={<Switcher />} session={<Person />}
              />
            )}
          >
            <AppPanel title={view} viewKey={view}>
              {view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}
            </AppPanel>
          </AppFrame>
        </div>
      </div>
    </div>
  );
}

Pane width

Resize the right pane without changing the sidebar width.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, Button, Slider,
} from "@arcadia/ui";

function PaneWidth() {
  const [view, setView] = useState<View>("Settings");
  const [width, setWidth] = useState(384);
  const [pane, setPane] = useState(true);
  return (
    <div {...sx("app-pane-widths", page.widths)}>
      <div {...sx("app-pane-controls", page.widthControls)}>
        <div {...sx("app-pane-field", page.widthField)}>
          <Slider
            label="Pane width" min={96} max={900} step={8} value={width} valueText={(v) => `${v} pixels`}
            onValueChange={setWidth}
          />
        </div>
        <Button size="sm" variant="secondary" pressed={pane} onClick={() => setPane(!pane)}>Pane</Button>
      </div>
      <Window size="wide" render={() => (
        <AppFrame
          rootStyle={page.frame}
          rail={<Rail />}
          sidebar={<AppSidebar aria-label="Workspace" head={<Workspace />} groups={groupsFor(view, setView)} />}
          pane={<Pane close={() => setPane(false)} />}
          paneLabel="Review"
          paneOpen={pane} onPaneOpenChange={setPane}
          paneWidth={width} onPaneWidthChange={setWidth}
          bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />} switcher={<Switcher />} session={<Person />} />}
        >
          <AppPanel title={view} viewKey={view}>
            {view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}
          </AppPanel>
        </AppFrame>
      )} />
    </div>
  );
}

Desktop host

Try the joined sidebar and panel-aligned bar together.

Preview
nav 240px / pane 384px
Skip to content
Product

Settings

Workspace

Name
Key
WKS
Email updates
Language
Description

Data

Members
4
Export Every project, as one file
import { useRef, useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, Button, IconButton, Dialog,
  DialogActions, DialogBody, DialogClose, DialogContent, DialogFooter,
  DialogHeader, DialogTitle, ResizeGrip,
} from "@arcadia/ui";

function DesktopHost({ container }: { container?: HTMLElement }) {
  const [view, setView] = useState<View>("Settings");
  const [navMode, setNavMode] = useState<"full" | "rail" | "hidden">("full");
  const [navWidth, setNavWidth] = useState(240);
  const [navReported, setNavReported] = useState<number | null>(null);
  const [paneOpen, setPaneOpen] = useState(true);
  const [paneWidth, setPaneWidth] = useState(384);
  const [paneShare, setPaneShare] = useState<number | null>(null);
  const [settingsOpen, setSettingsOpen] = useState(false);
  const dragStartWidth = useRef(paneWidth);
  const [win, setWin] = useState<HTMLDivElement | null>(null);
  const railNode = navMode === "hidden" ? undefined : (
    <div {...sx("app-desktop-rail", page.railJoined)}>
      <IconButton icon="search" label="Search" size="md" tooltip={false} />
      <IconButton icon="chat" label="Chats" size="md" tooltip={false} />
      <div {...sx("app-rail-foot", page.railFoot)}>
        <IconButton icon="settings" label="Settings" size="md" tooltip={false} onClick={() => setSettingsOpen(true)} />
      </div>
    </div>
  );
  const cornerNode = (
    <div {...sx("app-corner-lights", page.cornerLights)}>
      <span aria-hidden {...sx("app-corner-dot", page.cornerDot)} />
      <span aria-hidden {...sx("app-corner-dot", page.cornerDot)} />
      <span aria-hidden {...sx("app-corner-dot", page.cornerDot)} />
    </div>
  );
  const gripNode = (
    <ResizeGrip
      label="Resize review pane"
      value={paneWidth}
      min={96}
      max={900}
      onDragStart={() => { dragStartWidth.current = paneWidth; }}
      onDragMove={({ total }) => setPaneWidth(Math.round(dragStartWidth.current - total))}
      onStep={(delta) => setPaneWidth((w) => w - delta)}
      onReset={() => setPaneWidth(384)}
    />
  );
  return (
    <div {...sx("app-desktop-widths", page.widths)} data-desktop-host="">
      <div {...sx("app-desktop-controls", page.widthControls)}>
        {([200, 240, 360] as const).map((w) => (
          <Button key={`nav-${w}`} size="sm" variant="secondary" pressed={navWidth === w} data-nav-preset={w} onClick={() => { setNavMode("full"); setNavWidth(w); }}>
            {`Nav ${w}`}
          </Button>
        ))}
        {(["full", "rail", "hidden"] as const).map((mode) => (
          <Button key={mode} size="sm" variant="secondary" pressed={navMode === mode} data-nav-mode={mode} onClick={() => setNavMode(mode)}>
            {mode === "full" ? "Full" : mode === "rail" ? "Rail" : "Hidden"}
          </Button>
        ))}
        {([200, 384, 900] as const).map((w) => (
          <Button key={`pane-${w}`} size="sm" variant="secondary" pressed={paneOpen && paneWidth === w} data-pane-preset={w} onClick={() => { setPaneOpen(true); setPaneWidth(w); }}>
            {`Pane ${w}`}
          </Button>
        ))}
        <Button size="sm" variant="secondary" pressed={paneOpen} data-pane-toggle="" onClick={() => setPaneOpen((o) => !o)}>Pane</Button>
        <span {...sx("app-desktop-readout", page.desktopReadout)} data-desktop-readout="">
          {`nav ${navWidth}px${navReported != null ? ` (clamped ${navReported})` : ""} / pane ${paneWidth}px${paneShare != null ? ` (${Math.round(paneShare * 100)}%)` : ""}`}
        </span>
      </div>
      <div {...sx("app-room", page.room)}>
        <div ref={setWin} style={vars({ "--app-sample-width": "1200px" })} {...sx("app-window", page.window, page.resizeSample)}>
          <div {...sx("app-desktop-host", page.desktopHost)}>
            <AppFrame
              rootStyle={page.frame}
              window="desktop"
              barSpan="panel"
              navSurface="joined"
              corner={cornerNode}
              rail={railNode}
              sidebar={<AppSidebar aria-label="Workspace" head={<Workspace />} groups={groupsFor(view, setView)} />}
              navOpen={navMode === "full"}
              onNavOpenChange={(open) => setNavMode(open ? "full" : "rail")}
              navWidth={navWidth}
              onNavWidthChange={(px) => { setNavReported(px); setNavWidth(px); }}
              pane={<Pane close={() => setPaneOpen(false)} />}
              paneGrip={gripNode}
              paneLabel="Review"
              paneOpen={paneOpen}
              onPaneOpenChange={setPaneOpen}
              paneWidth={paneWidth}
              onPaneWidthChange={(px, share) => { setPaneWidth(px); setPaneShare(share); }}
              inert={settingsOpen}
              bar={(
                <AppBar
                  product="Product" home={HERE}
                  crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />}
                  switcher={<Switcher />} session={<Person />}
                />
              )}
            >
              <AppPanel
                title={view} viewKey={view}
                action={<Button size="sm" variant="secondary" data-open-settings="" onClick={() => setSettingsOpen(true)}>Open settings</Button>}
              >
                {view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}
              </AppPanel>
            </AppFrame>
            <Dialog open={settingsOpen} onOpenChange={setSettingsOpen} modal={false}>
              <DialogContent size="sm" container={container ?? win ?? undefined} data-sibling-dialog="">
                <DialogHeader>
                  <DialogTitle>Workspace settings</DialogTitle>
                </DialogHeader>
                <DialogBody>
                  <P>Rendered as a sibling beside AppFrame while main stays inert underneath.</P>
                </DialogBody>
                <DialogFooter>
                  <DialogActions>
                    <DialogClose render={<Button size="sm" variant="primary" data-close-settings="" />}>Done</DialogClose>
                  </DialogActions>
                </DialogFooter>
              </DialogContent>
            </Dialog>
          </div>
        </div>
      </div>
    </div>
  );
}

Narrow sidebar

Open a narrow sidebar beside the panel, not over it.

Preview
Closed
Open
import { useState } from "react";
import { AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar } from "@arcadia/ui";

function Narrow({ open = false }: { open?: boolean }) {
  const [view, setView] = useState<View>("Overview");
  const [nav, setNav] = useState(open);
  return (
    <AppFrame
      rootStyle={page.frame}
      navOpen={nav}
      onNavOpenChange={setNav}
      rail={<Rail />}
      bar={<AppBar product="Product" home={HERE} crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />} switcher={<Switcher />} session={<Person />} />}
      sidebar={<AppSidebar aria-label="Workspace" head={<Workspace />} groups={groupsFor(view, setView)} />}
    >
      <AppPanel title={view} viewKey={view}>
        {view === "Settings" ? <SettingsSample /> : <Placeholder title={view} />}
      </AppPanel>
    </AppFrame>
  );
}

Filled panel

The board scrolls inside the panel and stacks its columns when narrow.

Preview
import { useState } from "react";
import {
  AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar, BoardColumn, Card,
  CardBody, ScrollArea,
} from "@arcadia/ui";

function Board({ container }: { container: HTMLElement }) {
  const [view, setView] = useState<(typeof PROJECTS)[number]>("First project");
  const [filters, setFilters] = useState<ReadonlySet<string>>(() => new Set());
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label="Workspace" groups={[{
    label: "Projects",
    items: PROJECTS.map((label) => ({ id: label, label, current: view === label, onSelect: () => setView(label) })),
  }]} />;
  const columns = view === "First project" ? COLUMNS : SECOND_BOARD;
  return (
    <AppFrame
      rootStyle={page.frame}
      inert={nav.shown}
      bar={<AppBar product="Product" home={HERE} hideProductName={nav.markOnly} end={nav.toggle} crumbs={<AppCrumbs items={[{ label: "Workspace", href: HERE }, { label: view }]} />} switcher={<Switcher />} session={<Person />} />}
      sidebar={!nav.compact && sidebar}
    >
      <AppPanel title={view} viewKey={view} fill bar={(room) => <BoardBar room={room} on={filters} setOn={setFilters} />}>
        <ScrollArea orientation="both" rootStyle={page.board} label="Project board">
          <div {...sx("app-columns", page.columns)}>
            {columns.map(({ title, cards }) => {
              const shown = cards.filter(([, ...tags]) => [...filters].every((filter) => tags.some((tag) => tag === filter)));
              return (
                <BoardColumn key={title} title={title} count={shown.length} fit rootStyle={page.column}>
                  {shown.map(([label]) => <Card key={label} rootStyle={page.boardCard}><CardBody>{label}</CardBody></Card>)}
                </BoardColumn>
              );
            })}
          </div>
        </ScrollArea>
      </AppPanel>
      {nav.sheet(sidebar)}
    </AppFrame>
  );
}

A head bar function receives whether the panel is at least 640 pixels wide.

Panel scrolling

Without fill, get the panel scroller through viewportRef.

Preview
import { useEffect, useRef, useState } from "react";
import { AppBar, AppFrame, AppPanel, Card, ListRow } from "@arcadia/ui";

function Activity() {
  const viewport = useRef<HTMLDivElement>(null);
  const [shown, setShown] = useState(20);
  useEffect(() => {
    const el = viewport.current;
    if (!el) return;
    const near = () => {
      const remaining = el.scrollHeight - el.scrollTop - el.clientHeight;
      if (Math.sign(remaining - el.clientHeight) === -1) setShown((n) => Math.min(EVENTS, n + 20));
    };
    el.addEventListener("scroll", near, { passive: true });
    return () => el.removeEventListener("scroll", near);
  }, []);
  return (
    <AppFrame rootStyle={page.frame} bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
      <AppPanel title="Activity" readout={`${shown} of ${EVENTS}`} viewportRef={viewport}>
        {Array.from({ length: shown }, (_, i) => (
          <ListRow key={i} leading="history" label={`Card ${i + 1} moved to Done`} meta={`${i + 1}h`} interactive={false} />
        ))}
      </AppPanel>
    </AppFrame>
  );
}

App switcher

Switch between Crew, Act and Keep from one menu.

Preview
Try it
import { AppBar, AppSwitcher, PortalProvider } from "@arcadia/ui";

function SwitcherOpen({ container }: { container: HTMLElement }) {
  return (
    <PortalProvider container={container}>
      <div {...sx("app-bar-sample", page.bar)}>
        <AppBar product="Keep" home={HERE} switcher={<AppSwitcher current="Keep" open modal={false} />} session={<Person />} />
      </div>
    </PortalProvider>
  );
}

Account menu

Open the avatar menu for account actions.

Preview
Try it
import { AppBar, PortalProvider } from "@arcadia/ui";

function PersonOpen({ container }: { container: HTMLElement }) {
  return (
    <PortalProvider container={container}>
      <div {...sx("app-bar-sample", page.bar)}>
        <AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person open />} />
      </div>
    </PortalProvider>
  );
}

Pass onSendFeedback to open the feedback sheet.

No address

Omit address to show only the person's name.

Preview
Try it
import { useState } from "react";
import { AppBar, PortalProvider, SessionMenu } from "@arcadia/ui";

function PersonNoAddress({ container }: { container: HTMLElement }) {
  const [theme, setTheme] = useState<ThemePreference>("system");
  return (
    <PortalProvider container={container}>
      <div {...sx("app-bar-sample", page.bar)}>
        <AppBar
          product="Product" home={HERE} switcher={<Switcher />}
          session={<SessionMenu name="alex" theme={theme} onThemeChange={setTheme} onSignOut={() => {}} open modal={false} />}
        />
      </div>
    </PortalProvider>
  );
}

Spaces

Switch between a personal account and its teams.

Preview
Try it
import { useState } from "react";
import { SessionMenu } from "@arcadia/ui";

function Spaces({ many = false, personal = true, open }: { many?: boolean; personal?: boolean; open?: boolean }) {
  const [theme, setTheme] = useState<ThemePreference>("system");
  return (
    <SessionMenu
      name="Alex Morgan" address="alex@example.com" account={HERE} theme={theme} onThemeChange={setTheme} onSignOut={() => {}}
      teams={many ? MANY : TEAMS} personal={personal} space={many ? "t9" : "t2"} spaceHref={spaceHref} teamsHref={HERE} newTeamHref={HERE}
      {...(open && { open: true, modal: false })}
    />
  );
}
Preview
Search nine teams or open the full team list.
Without a personal space, the list starts with teams.

Share SessionSpaces between both menus. Use spaceHref for links or onSelect for buttons.

After seven teams, the current team stays visible. Supply teamsHref and newTeamHref for the extra rows.

Place MenuSearch in the head menu to filter spaces.

Preview
import { useState } from "react";
import {
  AppSidebar, Button, Menu, MenuContent, MenuSearch, MenuTrigger, SessionSpaces,
} from "@arcadia/ui";

function TeamHead() {
  const [query, setQuery] = useState("");
  return (
    <div {...sx("app-head-sample", page.headroom)}>
      <AppSidebar
        aria-label="Workspace"
        head={
          <Menu modal={false} onOpenChange={(next) => { if (!next) setQuery(""); }}>
            <MenuTrigger render={<Button variant="ghost" iconEnd="chevron-down" aria-label="Arcadia, switch team" />}>Arcadia</MenuTrigger>
            <MenuContent align="start"
              search={<MenuSearch aria-label="Search teams" placeholder="Search teams" value={query} onChange={(e) => setQuery(e.target.value)} />}>
              <SessionSpaces name="Alex Morgan" teams={MANY} space="t1" spaceHref={spaceHref} teamsHref={HERE} newTeamHref={HERE} query={query} />
            </MenuContent>
          </Menu>
        }
        groups={[{ key: "main", items: [
          { id: "map", label: "Map", href: HERE, current: true },
          { id: "cards", label: "Cards", href: HERE },
          { id: "members", label: "Members", href: HERE },
        ] }]}
      />
    </div>
  );
}

Avatar status

Put a count or status mark beside the avatar.

Preview
import { useState } from "react";
import { AppBar, Chip, SessionMenu } from "@arcadia/ui";

function PersonMark() {
  const [theme, setTheme] = useState<ThemePreference>("system");
  return (
    <div {...sx("app-bar-sample", page.bar)}>
      <AppBar product="Product" home={HERE} switcher={<Switcher />} session={
        <SessionMenu
          name="Alex Morgan" theme={theme} onThemeChange={setTheme} onSignOut={() => {}}
          mark={{ node: <Chip variant="outline" size="sm" tone="muted">2</Chip>, label: "2 invitations" }}
        />
      } />
    </div>
  );
}

Online and busy

Use presence and onPresenceChange to set availability.

Preview
Try it
import { useState } from "react";
import { SessionMenu } from "@arcadia/ui";

function Present({ open, initial = "online" }: { open?: boolean; initial?: Presence }) {
  const [theme, setTheme] = useState<ThemePreference>("system");
  const [presence, setPresence] = useState<Presence>(initial);
  return (
    <SessionMenu
      name="Alex Morgan" address="alex@example.com" account={HERE} theme={theme} onThemeChange={setTheme} onSignOut={() => {}}
      presence={presence} onPresenceChange={(choice) => setPresence(choice.presence)} {...(open && { open: true, modal: false })}
    />
  );
}

Busy can end in an hour, tomorrow or when turned off.

TSX
import { SessionMenu, useOwnPresence } from "@arcadia/ui";

function OwnState() {
  const own = useOwnPresence();
  return (
    <SessionMenu
      name="Alex Morgan" theme={theme} onThemeChange={setTheme}
      onSignOut={signOut} {...own}
    />
  );
}

Use useOwnPresence to read and update presence through Crew.

Long names

Parent crumbs shorten or fold before the current page truncates.

Preview
import { useState } from "react";
import { AppBar, AppCrumbs, AppFrame, AppPanel, AppSidebar } from "@arcadia/ui";

function LongNames() {
  const [view, setView] = useState("A page whose name runs on longer than any bar has room for");
  const many = Array.from({ length: 24 }, (_, i) => `Project number ${i + 1} with a name that is long`);
  return (
    <AppFrame
      rootStyle={page.frame}
      bar={(
        <AppBar
          product="A product with a long name" home={HERE}
          crumbs={<AppCrumbs items={[{ label: "A workspace with a long name", href: HERE }, { label: "Projects", href: HERE }, { label: view }]} />}
          switcher={<Switcher />} session={<Person />}
        />
      )}
      sidebar={<AppSidebar aria-label="Workspace" groups={[{ label: "Projects", items: many.map((label) => ({ id: label, label, current: view === label, onSelect: () => setView(label) })) }]} />}
    >
      <AppPanel title={view} viewKey={view}><Placeholder title="Project" /></AppPanel>
    </AppFrame>
  );
}

Settings page

Align settings labels, values and controls in one column.

Preview

Workspace

Name
Key
WKS
Email updates
Language
Description

Data

Members
4
Export Every project, as one file
import {
  Button, Input, SettingsGroup, SettingsPage, SettingsRow, Switch, Textarea,
} from "@arcadia/ui";

<SettingsPage>
  <SettingsGroup label="Workspace">
    <SettingsRow label="Name" control={<Input aria-label="Name" defaultValue="Workspace" />} />
    <SettingsRow label="Key" value="WKS" readout />
    <SettingsRow label="Email updates" control={<Switch hideLabel label="Email updates" defaultChecked />} />
    <SettingsRow label="Language" control={<Language />} />
    <SettingsRow label="Description" wide control={<Textarea aria-label="Description" minRows={2} defaultValue="Where the team keeps its work." />} />
  </SettingsGroup>
  <SettingsGroup label="Data">
    <SettingsRow label="Members" value="4" readout href={HERE} />
    <SettingsRow label="Export" meta="Every project, as one file" control={<Button size="sm" variant="secondary">Export data</Button>} />
  </SettingsGroup>
</SettingsPage>

Wide page

Use the wide measure for lists that need more room.

Preview
import {
  ActorName, AppBar, Avatar, AppFrame, AppPanel, ListRow,
} from "@arcadia/ui";

<AppFrame rootStyle={page.frame} bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
  <AppPanel title="Members" readout={`${MEMBERS.length} in the team`}>
    <div {...sx("app-page-column", page.pageColumn)}>
      {MEMBERS.map(({ actor, seen }) => (
        <ListRow key={actor.name} interactive={false} leading={<Avatar {...actor} alone aria-hidden size={20} />}
          label={<ActorName actor={actor} />} meta={seen} metaYields={false} />
      ))}
    </div>
  </AppPanel>
</AppFrame>

List and detail

Use ListDetail for a list beside its selected item.

Preview
import { useState } from "react";
import {
  AppBar, AppFrame, AppPanel, Chip, ListRow, ListDetail, ListRows, Meta,
  StatusDot,
} from "@arcadia/ui";

function ListAndDetail() {
  const [chosen, setChosen] = useState<string | null>(null);
  const [fresh, setFresh] = useState(true);
  const shown = REPORTS.filter((r) => !fresh || r.fresh);
  return (
    <AppFrame rootStyle={page.frame} bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
      <AppPanel title="Feedback" fill bar={
        <div role="group" aria-label="States" {...sx("app-filter-head", page.filterHead)}>
          <Chip pressed={fresh} onPressedChange={setFresh} count={REPORTS.filter((r) => r.fresh).length}>New</Chip>
          <Chip pressed={!fresh} onPressedChange={(on) => setFresh(!on)} count={REPORTS.length}>All</Chip>
        </div>
      }>
        <ListDetail
          listLabel="Reports" detailLabel="Report" empty="Choose a report to read it." onClose={() => setChosen(null)}
          list={
            <ListRows><ul aria-label="Reports" {...sx("app-reports", page.reports)}>
              {shown.map((r) => (
                <li key={r.id}>
                  <ListRow label={r.text} labelLines={2} emphasis={r.fresh} light={r.fresh ? <StatusDot status="unread" label="New" /> : <StatusDot />}
                    sub={<Meta items={[r.kind, r.where]} />} aside={r.sent} active={r.id === chosen} aria-current={r.id === chosen ? "true" : undefined}
                    onClick={() => setChosen(r.id)} />
                </li>
              ))}
            </ul></ListRows>
          }
          detail={chosen ? (beside: boolean) => <Report id={chosen} framed={!beside} /> : null}
        />
      </AppPanel>
    </AppFrame>
  );
}
PreviewOn narrow screens, the selected row opens a dialog.

A detail function can render a dialog header and body when stacked.

Notice bar

Pass a bar Notice as the panel's banner.

Preview
import { useState } from "react";
import {
  ActorName, AppBar, Avatar, AppFrame, AppPanel, Button, Chip, ListRow, Notice,
} from "@arcadia/ui";

function WithBanner() {
  const [open, setOpen] = useState(true);
  return (
    <AppFrame rootStyle={page.frame} bar={<AppBar product="Product" home={HERE} switcher={<Switcher />} session={<Person />} />}>
      <AppPanel
        title="People"
        centred="wide"
        banner={open && (
          <Notice
            layout="bar"
            aria-label="Active case"
            tag={<Chip variant="outline" size="md">Case in hand</Chip>}
            title="Harbour Lab billing review"
            action={<Button variant="secondary" size="sm">Open case</Button>}
            onLeave={() => setOpen(false)}
            leaveLabel="Leave case"
          >
            Maya Lin
          </Notice>
        )}
      >
        <div {...sx("app-page-column", page.pageColumn)}>
          {MEMBERS.map(({ actor, seen }) => (
            <ListRow key={actor.name} interactive={false} leading={<Avatar {...actor} alone aria-hidden size={20} />}
              label={<ActorName actor={actor} />} meta={seen} metaYields={false} />
          ))}
        </div>
      </AppPanel>
    </AppFrame>
  );
}

Measures

TokenUseValue
The bar: one line, the same in every product.
The sidebar's column beside the panel: the width the person set, in the flow at every width.
The narrowest width navWidth clamps to when controlled.
The widest width navWidth clamps to when controlled.
The sidebar's rail, its column closed: the strip at the frame's start that never closes.
The leading room in the rail's head reserved for a desktop window's traffic lights.
The right pane's column beside the panel, at every width. A quarter of it is the least a pane takes.
The panel from the window's end and bottom edges, and its start with no sidebar beside it.
A panel's least usable width beside an open sidebar: the frame opens its column the first time only where the rail, the column and this fit.
A panel title's least inline size before its head wraps the readout and the controls under it.
The panel's corner: a surface's frame, 12.
A settings page's one column.
Any other page's column: members, a record, a table. A settings page keeps its own.
A wide page's column for lists and tables.
Under this width of the frame its panel and its page step in by one step less.
A ListDetail's list column while its detail stands beside it.
Under this width of a ListDetail its detail opens over the list in a dialog.

Sheet

Use Sheet for an overlay, not for frame columns.

Preview
import { useState } from "react";
import {
  AppBar, AppFrame, AppPanel, AppSidebar, IconButton, Sheet,
} from "@arcadia/ui";

function SidebarSheet({ container }: { container: HTMLElement }) {
  const [view, setView] = useState<View>("Overview");
  const [open, setOpen] = useState(false);
  return (
    <AppFrame rootStyle={page.frame} bar={<AppBar product="Crew" home={HERE} hideProductName
      end={<IconButton icon="sidebar" label="Open navigation" size="md" onClick={() => setOpen(true)} />}
    />}>
      <AppPanel title={view} viewKey={view}><Placeholder title={view} /></AppPanel>
      <Sheet aria-label="Navigation" open={open} onOpenChange={setOpen} modal={false} container={container}>
        <AppSidebar aria-label="Crew" groups={groupsFor(view, setView)} foot={<FootControls />} />
      </Sheet>
    </AppFrame>
  );
}
--sheet-w
TokenRef<Measure>
Default: var(--app-sidebar-width)

The skip link focuses the panel title. Tab then follows the bar, sidebar and page.

Current navigation items use aria-current. When viewKey changes, focus returns to the title.

The sidebar toggle announces whether its column is open. The right pane is complementary. Neither column traps focus.

AppShell

productrequired
{ name: string; href: string }
The app you are in: the bar's mark and name lead to it, and the switcher marks it.
hideProductName
boolean
Omit the visible product name beside the mark, the mark alone leading home (an AppBar hideProductName).
crumbs
readonly AppCrumb[]
Where you are inside it, from the product's first level down to the page; an AppCrumbs is drawn.
apps
readonly AppProduct[]
The apps the switcher offers and the bell asks Crew among. Left out, Arcadia's own list, ARCADIA_APPS.
arcadiaHome
string
Where the mark leads, for a bar whose mark leads elsewhere than the product: the account's, Crew's Inbox.
barEnd
ReactNode
One control before the switcher, in the bar's end group.
switcher
boolean
The apps' switcher: in the bar's end (the default), or false for a product that draws its own at the sidebar's foot.
bell
AppBellProps | ReactNode
The bell: its props, your own node, or true for the plain one. False leaves it out.
session
SessionMenuProps | ReactNode
The person's menu: its props, your own node, or true for none until the session loads.
sidebar
AppSidebarProps | ReactNode
The sidebar: its props, or your own node. False leaves it out, for a product of one page.
banner
ReactNode
One line above the page, inside its panel: a notice about the view.
panel
Omit<AppPanelProps, "children">
The panel's head: title, readout, action, bar, fill, centred, viewportRef and viewKey. Its page is this shell's children.
skipTo
string
The id of the element the skip link moves to focus, inside the panel. Left out, the page's title, then the panel.
barSpan
"frame" | "panel"
Whether the bar spans the whole frame (frame) or sits inside the panel column only (panel).
rail
ReactNode
The sidebar's rail: its own node, standing at the frame's start at every width.
pane
ReactNode
The right pane: its own node, a column of its own beside the panel at every width.
paneGrip
ReactNode
Optional resize control drawn on the pane's leading edge inside --app-panel-inset.
navOpen
boolean
The sidebar column is open. Left out, the frame opens it where the rail, the column and --app-panel-min fit, and holds the person's choice at every width from their first toggle.
onNavOpenChange
(open: boolean) => void
Called when the sidebar column opens or closes.
navWidth
number
The sidebar column's width in pixels, clamped between --sidebar-width-min and --sidebar-width-max.
onNavWidthChange
(px: number) => void
Called with the clamped width the sidebar takes when navWidth falls outside its range.
navSurface
"split" | "joined"
Default: "split"
How the rail and the sidebar column share a surface: split or joined.
window
"web" | "desktop"
Host window mode: desktop marks the bar and rail head as drag regions with no-drag on controls.
corner
ReactNode
Leading slot in the rail's head, reserving --app-corner-width for desktop window corner controls.
paneOpen
boolean
The right pane is open. Left out, the frame holds it, starting closed.
onPaneOpenChange
(open: boolean) => void
Called when the pane opens or closes.
paneWidth
number
The right pane's width in pixels; the frame clamps it to its least and to what the frame has left.
onPaneWidthChange
(px: number, share: number) => void
Called with the clamped width the pane takes and its share of the frame (px / frameWidth) when narrowed.
inert
boolean
Sets inert on the frame's main panel subtree while a sibling layer covers it.
rootStyle
RootStyle
Typed StyleX override: its size where it is not the whole window.
childrenrequired
ReactNode
The page.

barrequired
ReactNode
The bar: an AppBar, or a product's own top bar.
barSpan
"frame" | "panel"
Default: "frame"
Whether the bar spans the whole frame (frame) or sits inside the panel column only (panel), tracking the panel's x-range as the sidebar and pane change width.
sidebar
ReactNode
The sidebar: an AppSidebar, in a column of its own that the person opens and closes at every width. Leave it out for a product of one page.
rail
ReactNode
The sidebar's rail: the narrow strip that stands at the frame's start at every width, before the column (a product's icons, its history, its lights). The column closes to it; omit rail with navOpen={false} to hide the sidebar whole.
navOpen
boolean
The sidebar's column is open. Left out, the frame decides the first time: open where the rail, the column and the panel's least usable width fit (--app-rail-width + --app-sidebar-width + --app-panel-min), closed under that. From the person's first toggle the choice holds at every width, and the panel takes what is left beside it.
onNavOpenChange
(open: boolean) => void
Called when the column opens or closes: its toggle in the bar, or the product's own control.
navWidth
number
Controlled sidebar width in pixels, bounded by the sidebar width tokens and the frame's room. Omit for local resizing, starting at --app-sidebar-width.
onNavWidthChange
(px: number) => void
Reports the clamped width on resize, or when the controlled width exceeds the available range.
navResizable
boolean
Default: true
Show the built-in resize grip on the open, in-flow sidebar. @default true
navGrip
ReactNode
Replaces the built-in resize grip. Pass false to leave the edge empty.
navSurface
"split" | "joined"
Default: "split"
How the rail and the sidebar column share a surface: split draws the rail and column as two parts side by side; joined draws one ground and one trailing hairline with the rail as the column's leading part and total width equal to navWidth.
window
"web" | "desktop"
Default: "web"
Host window mode: desktop marks the bar and the rail's head as drag regions (-webkit-app-region: drag) and sets no-drag on every interactive descendant so native hit-testing and keyboard focus stay intact.
corner
ReactNode
Leading slot in the rail's head, reserving --app-corner-width for a desktop window's corner controls and traffic lights. Off until passed.
pane
ReactNode
The right pane: a column of its own beside the panel at every width, never a sheet or a strip over it.
paneGrip
ReactNode
Optional resize control drawn on the pane's leading edge inside --app-panel-inset (such as ResizeGrip).
paneOpen
boolean
The right pane is open. Left out, the frame holds it, starting closed. The frame never closes a pane for the width of the window, and never narrows it under its least: the panel gives way instead, and where the open columns leave it no width at all it is inert, so no stop lands where nothing shows.
paneLabel
string
The pane's name for a reader (it is a complementary landmark): "Review", "Files".
onPaneOpenChange
(open: boolean) => void
Called when the pane opens or closes.
paneWidth
number
Default: --app-pane-width
The right pane's width in pixels, the product's to drag. The frame clamps it: never under a quarter of --app-pane-width, and never more than the frame has left beside the rail and the open column above the panel's floor (--app-panel-title-min). Under that the pane keeps its least and the panel goes under its floor.
onPaneWidthChange
(px: number, share: number) => void
Called with the clamped width the pane takes and its share of the frame (px / frameWidth) when the frame narrows it. The live share is also published as --app-pane-share on the frame root.
inert
boolean
Default: false
Sets inert on the frame's main panel subtree while a sibling settings or dialog layer covers it. Siblings outside AppFrame stay interactive, and focus returns to the opener when inert clears if nothing else claimed it.
skipTo
string
The id of the element the skip link moves to focus, inside the panel: a page's first field or list. Left out, the page's title, then the panel.
rootStyle
RootStyle
Typed StyleX override: its size where it is not the whole window (a picture of it).
children
ReactNode
The page: an AppPanel.

productrequired
string
The product's short name beside the mark ("Crew").
hideProductName
boolean
Default: false
Omit the visible product name beside the mark, and use product as the home link's accessible name. Ignored when arcadiaHome is set: there the mark and the name are two distinct links.
homerequired
string
The product's home: the mark and the name link there.
arcadiaHome
string
Where the mark leads, for a bar whose mark leads elsewhere than home (the account's: Crew's Inbox): the mark and the name are then two links, standing where the one stood.
crumbs
ReactNode
Where you are inside the product: an AppCrumbs.
end
ReactNode
One control before the switcher, for a product that needs one in the bar.
switcher
ReactNode
The app switcher: an AppSwitcher. The bar draws it where it is given, and nothing where it is not: a product that moves it to the sidebar's foot (AppSidebar's foot) passes it there and not here.
bell
ReactNode
The bell: an AppBell, between the switcher and the person. Left out, the bar draws nothing for it.
session
ReactNode
The person's menu: a SessionMenu (a Skeleton circle while the session loads, so its place stands meanwhile). Left out, the bar draws nothing for it.

itemsrequired
readonly AppCrumb[]
From the product's first level down to the page; with current, the levels above it, every one a parent.
current
ReactNode
The page itself, in place of the last of items: any node (an inline rename, a control beside the name). Every entry of items is then a parent crumb, and this stands after the last of them, in the last slot. It gives way as the page does: it shrinks, and only after the parents have, so it should truncate its own text (a FadeText).
fold
"start" | "middle"
Default: "start"
Which levels give way when the bar is narrow. "start": from the first level. "middle": the first level stays and the levels between it and the page fold into one menu button, which opens them.
aria-label
string
Default: "Breadcrumb"
The landmark's name.
foldLabel
string
Default: "Earlier levels"
What the menu button of folded levels is called, for fold="middle".

products
readonly AppProduct[]
Default: ARCADIA_APPS
The apps to offer, in order. Left out, Arcadia's own list, ARCADIA_APPS, which is what a product wants; a list is passed only where the addresses differ, as on a developer's machine. The products: never the docs, never the account.
current
string
The name of the app you are in: marked, and not a link.
open
boolean
Controlled open state.
defaultOpen
boolean
Default: false
Initial open state when uncontrolled.
onOpenChange
MenuProps["onOpenChange"]
Called when the menu opens or closes.
modal
boolean
Default: true
Holds the page's scroll and pointer while open.

namerequired
string
The person's name: the trigger's accessible name, the menu's head and the avatar's initials.
address
string
Their address, under the name; without it the line is not drawn.
picture
string
Their picture's address; without it, the initials of name.
mark
{ node: ReactNode; label?: string }
A mark beside the avatar: a count, a StatusDot (attention). Its words join the trigger's name.
account
string
The Arcadia account's address. Leave it out on the account itself.
themerequired
"system" | "dark" | "light"
The theme chosen now.
onThemeChangerequired
(theme: ThemePreference) => void
Called with the theme picked.
onSignOutrequired
() => void
Signs out: a request, never an address (K48).
onSendFeedback
(report: FeedbackReport) => Promise<void> | void
Sends a report from the feedback sheet (FeedbackDialog's onSend). With it the menu holds "Send feedback", after the theme, and the row opens the sheet.
teams
readonly SessionTeam[]
The person's teams, in the order they joined, from the product's copy. With them the menu opens on the spaces, each a link: the person's own (their name, "Personal") where the product has one, each team by name, "All teams" past seven, and "New team".
personal
boolean
Default: false
The product has a space of the person's own: its row leads the spaces, by their name and "Personal", at spaceHref(null). Left out, a product with none (Crew) draws no such row.
space
string | null
The space they are in, checked: a team's id, or null for their own (with personal). Left out, none is (Crew's first screen is no team).
spaceHref
(team: SessionTeam | null) => string
Where a space's row leads as a link: a team's (/t/<handle>), or with null the person's own (/dashboard). The kit knows no address.
onSpaceSelect
(team: SessionTeam | null) => void
Called when a space's row is pressed as a button instead of navigating by spaceHref: the team, or null for personal.
teamsHref
string
The account's page of the person's teams, which "All teams" opens.
newTeamHref
string
The account's page that makes a team, which "New team" opens.
presence
"online" | "busy" | "offline"
The person's own state, from Crew: on their picture in the bar, and checked in their menu.
onPresenceChange
(choice: PresenceChoice) => void
Called with the person's choice. With it the menu holds "Online" and "Busy", the current one checked; under Busy one fold: "For an hour", "Until tomorrow", "Until I turn it off", the last what a plain press on Busy takes.
busy
boolean
Default: false
Signing out is under way: a spinner holds the avatar's place and presses wait.
open
boolean
Controlled open state.
defaultOpen
boolean
Default: false
Initial open state when uncontrolled.
onOpenChange
MenuProps["onOpenChange"]
Called when the menu opens or closes.
modal
boolean
Default: true
Holds the page's scroll and pointer while open.
children
ReactNode
The product's own rows, before the account (MenuItem, MenuLinkItem: "Admin").

namerequired
string
The person's name: their own space's row, when personal is set.
teamsrequired
readonly SessionTeam[]
The person's teams, in the order they joined. Past seven, "All teams" follows them when teamsHref is given.
personal
boolean
Default: false
Include the person's own space first, labelled "Personal".
space
string | null
The space they are in, checked: a team's id, or null for their own (with personal). Left out, none is checked.
spaceHref
(team: SessionTeam | null) => string
Where a space's row leads as a link: a team's (/t/<handle>), or with null the person's own (/dashboard).
onSelect
(team: SessionTeam | null) => void
Called when a space's row is pressed as a button (instead of navigating by spaceHref): the team, or null for personal.
teamsHref
string
The account's page of the person's teams, which "All teams" opens past seven teams.
newTeamHref
string
The account's page that makes a team, which "New team" opens.
query
string
What a MenuSearch in the menu's search slot holds: the rows narrow to the teams whose name holds it, past the seven, and a line says when none does. SessionMenu draws the field itself past seven teams; a sidebar's head puts its own in its MenuContent.

aria-labelrequired
string
The landmark's name ("Team", "Account").
id
string
The landmark's id, for what finds it from outside (a deploy's check of the page, a link to it).
head
ReactNode
What the rows belong to, above them, staying while they scroll (a team picker).
groupsrequired
readonly AppSidebarGroup[]
density
"compact"
foot
ReactNode
The product's own controls in one row, pinned under the groups and outside the navigation landmark beside them: a search, the apps' switcher, the bell (AppBell), the person's menu. It stands on the rows' inset and on the panel's inset from the frame's bottom edge, so the sidebar and the panel end on one line, and its controls come after the rows in reading and Tab order. A product that gives these a home here gives the bar's end nothing.
busy
boolean
The rows are loading (aria-busy).

title
ReactNode
The page's title: text, or a node that renders its own h1 (a title edited in place, which takes tabIndex={-1}).
subtitle
ReactNode
One quiet line under the title, on its text edge: the page's purpose, a chat's, a board's.
readout
ReactNode
One quiet thing before the actions, never a control: a key, a count, a legend. Text reads as a readout.
actions
ReactNode
More than one control at the head's end, before action: a search, a members control, a menu of more.
action
ReactNode
The last action, at the head's end (the page's menu or its one button).
bar
ReactNode | ((room: boolean) => ReactNode)
The head's second row (O46); a function is told if the panel has room for chips.
banner
ReactNode
fill
boolean
Default: false
The page fills the panel and scrolls on its own (a board, a chat with its foot). Without it the page scrolls in the panel as one column, on the head's inset.
centred
"settings" | "page" | "wide"
The head and the page stand in one column in the panel's middle, at the settings measure (settings, --app-settings-width), the page's (page, --app-page-width) or the wide measure (wide, --app-wide-width): the title on the column's text edge, where a settings group's label stands, and the readout and the action ending on it. A page with fill lays itself out.
viewportRef
Ref<HTMLDivElement>
The column's scrolling element, as ScrollArea hands it: to read or set its scroll, or for useScrollKeys and useStickToBottom. A page with fill brings its own scroller.
viewKey
string
Changes when the view changes (its address): the title then takes focus, so a keyboard and a reader start in the new view.
children
ReactNode
The page.

listrequired
ReactNode
The rows a person chooses from, scrolled in their own column.
listLabelrequired
string
The list's scroller, named: "Reports".
detail
ReactNode | ((beside: boolean) => ReactNode)
The chosen item's view, or nothing while none is chosen. Beside the list it scrolls in its own column; where the part is narrower than --list-detail-breakpoint it opens over the list in a Dialog. A function is told whether it stands beside, so in the dialog it draws its own DialogHeader and DialogBody.
detailLabelrequired
string
The detail's scroller, and its dialog, named: "Report".
empty
ReactNode
One quiet line where the detail stands while nothing is chosen: "Choose a report to read it."
onCloserequired
() => void
The detail's dialog closes: the product clears its choice.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

sharedColumns
boolean
Default: false
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

aria-labelrequired
string
modal
boolean
Default: true
keepMounted
boolean
Default: false
instant
boolean
initialFocus
FocusTarget
initialFocus / finalFocus: a ref, a boolean, or a function of how the popup was opened.
finalFocus
FocusTarget
initialFocus / finalFocus: a ref, a boolean, or a function of how the popup was opened.
container
PortalContainer
Where a surface's portal mounts. Default: document.body. Pass a themed subtree to keep its data-theme, or a transformed stage to contain position: fixed overlays (previews): a modal set down in one stays in it, shown in place, out of the browser's top layer.
surface
"sidebar"
side
"inline-start" | "bottom"
Default: "inline-start"
rootStyle
SheetStyle
open
boolean
Controlled open state.
defaultOpen
boolean
Default: false
Initial open state when uncontrolled.
onOpenChange
(open: boolean, details: OpenChangeDetails) => void
Called when the popup opens or closes, with why (details.reason) and the event.
onOpenChangeComplete
(open: boolean) => void
Called once the open or close transition has finished.
id
string
The dialog's id, for the control that opens it (aria-controls).

Rest props go to <div> props.