Ship-It Designv0.0.20

GitHub

Topbar

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Loading…

Props#

Props for Topbar
PropTypeDefaultDescription
titleReactNodeTitle rendered on the left.
titleAsenumHeading level for the page title. Default `'h1'` on touch density (mobile page header) and `'h2'` on desktop density (in-app chrome where the page `h1` typically lives in a separate hero/content area).
eyebrowReactNodeEyebrow label rendered above the title (small uppercase mono). Touch density only — silently ignored on desktop density to avoid two header tiers stacking.
leadingReactNodeLeft-of-title slot — typically a logo or breadcrumbs.
backboolean | MouseEventHandler<HTMLButtonElement> | undefinedRenders the back-arrow button at the start (before `leading`). Pass `back={true}` for the declarative form and wire the handler via `onBack`, or pass `back={handler}` directly. Touch-density only; ignored on desktop density.
onBackMouseEventHandler<HTMLButtonElement> | undefinedHandler for the back button when `back={true}`. Ignored when `back` is itself a function — in that case `back` is the handler.
actionsReactNodeRight-side action group. Rendered with `gap-3` (desktop) or `gap-1` (touch).
densityenumcomfortable`'comfortable'` (default) → desktop 52px header. `'touch'` → mobile 56px page-header with optional back button + eyebrow.