# Upstage Design System — Sidebar (product)
- context: product · group: navigation
- source revision: lift-1.2.3 (Lift 1.2.3, zip sha256 8d5d9377c2b4…)
- status: content source-derived · availability implemented · verification static-only
- human docs: /en/components/product/sidebar/ · machine doc: /agent/components/product/sidebar.md
## Required references (read these)
- /components/navigation/Sidebar.jsx — implementation · sha256 d763f885de5e…
- /components/_types.d.ts — api · key SidebarProps
- /components/navigation/Sidebar.prompt.md — usage-note · sha256 993ba1539e7a…
- /kit/rules/a11y-contract.json — a11y · key Sidebar
## API (components/_types.d.ts SidebarProps)
- items?: Array<{ id: string; label: React.ReactNode; icon?: React.ReactNode; section?: string }> (default [])
- activeId?: string
- onSelect?: (id: string) => void
- header?: React.ReactNode
- footer?: React.ReactNode
- width?: number (default 232)
- ariaLabel?: string (default 섹션 내비게이션) — <nav>의 접근성 이름.
- style?: React.CSSProperties
## Accessibility contract
- keys: -
- aria: aria-label, aria-current=page
## Unverified
- Browser behaviour is not verified here (static source check only).
Supported environment
The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.
API
Copied from SidebarProps in components/_types.d.ts.
| prop | type | default | doc |
|---|---|---|---|
items | Array<{ id: string; label: React.ReactNode; icon?: React.ReactNode; section?: string }> | [] | |
activeId | string | — | |
onSelect | (id: string) => void | — | |
header | React.ReactNode | — | |
footer | React.ReactNode | — | |
width | number | 232 | |
ariaLabel | string | 섹션 내비게이션 | <nav>의 접근성 이름. |
style | React.CSSProperties | — |
Code
One import line plus the example code from the usage note.
import { Sidebar } from "./components/navigation/Sidebar.jsx";<Sidebar
header={<img src="assets/brand/upstage_lockup_black.svg" height="20" />}
items={[{id:"keys", label:"API Keys", section:"Manage"}]}
activeId="keys" onSelect={go}
/>Token bindings
Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.
--duration-fast, --font-sans, --foreground, --muted-foreground, --sidebar-background, --sidebar-border, --sidebar-foreground, --sidebar-item-highlight
Source
components/navigation/Sidebar.jsximplementation · sha256 d763f885de5e…components/_types.d.tsapi · SidebarPropscomponents/navigation/Sidebar.prompt.mdusage-note · sha256 993ba1539e7a…kit/rules/a11y-contract.jsona11y · Sidebar