Skip to content
GitHub (opens in a new tab)

Layouts

Top bar and side nav composed from kit components. No pattern needed: these need only the package.

import { AppHeader, Button, Drawer, PageHeader, SideNav } from "agentic-ds-kit";

Top bar only

AppHeader over the page. No side nav. The page is a layout-canvas: by default a layout-header and a layout-content go inside, or put content straight in and the canvas pads and stacks it.

Acme

Top bar only

Overview: in your app this column is <main>.

Overview goes here

Built straight from kit components.

<div className="layout-shell">
  <AppHeader title="Acme" mark="A" radius="none" actions={…} />
  <main className="layout-canvas">
    <div className="layout-header"><PageHeader title="Overview" /></div>
    <div className="layout-content">…</div>
  </main>
</div>

Side nav only

SideNav beside the page. Below 64rem it moves into a left Drawer that a Menu Button opens, so the nav stays reachable.

Side nav only

In your app this column is <main>.

Overview goes here

Built straight from kit components.

<div className="layout-app">
  {/* Hidden below 64rem by your CSS */}
  <div className={styles.rail}><SideNav title="Acme" items={items} radius="none" /></div>
  <main className="layout-canvas">
    <div className="layout-header">
      {/* Shown below 64rem */}
      <Button appearance="ghost" mode="neutral" size="sm" iconStart="Menu" ariaLabel="Open navigation" onClick={() => setOpen(true)} />
      <PageHeader title="Overview" />
    </div>
    <div className="layout-content">…</div>
  </main>
  <Drawer open={open} title="Acme" side="left" size="sm" onClose={() => setOpen(false)}>
    <SideNav title="Acme" items={items} showHeader={false} open />
  </Drawer>
</div>

Top bar and side nav

The app-shell layout, composed by hand: the Menu Button replaces the mark below 64rem. npx agentic-ds-kit add app-shell copies a ready-made version.

Acme

Top bar and side nav

Overview: in your app this column is <main>.

Overview goes here

Built straight from kit components.

<div className="layout-shell">
  <AppHeader
    title="Acme"
    radius="none"
    logo={<>{/* Mark when wide, Menu Button below 64rem */}</>}
  />
  <div className="layout-app">
    <div className={styles.rail}><SideNav title="Acme" items={items} showHeader={false} radius="none" /></div>
    <main className="layout-canvas">…</main>
  </div>
  <Drawer open={open} title="Acme" side="left" size="sm" onClose={() => setOpen(false)}>
    <SideNav title="Acme" items={items} showHeader={false} open />
  </Drawer>
</div>