Breadcrumb
Path to the current page as a hierarchy of links.
Product top chrome: brand mark, centred search and trailing actions.
Product top chrome. Letter mark or a logo slot on the start, kit Input search in the center, kit Buttons on the end. Not PageHeader. Not DocsNav.
Full-bleed bar. Default mark is a letter, same idea as SideNav. Search is kit Input.
Use for the product shell top bar. Pass logo for a custom mark — do not bake a brand SVG into the kit. Page titles stay on PageHeader. Sidebars stay on SideNav or DocsNav.
Override on :root, a wrapper, or the component's className / style, e.g. .myHeader { --appheader-height: var(--space-12); }. Set them to semantic tokens, never hex. Listed under cssVars in the contract.
| Variable | Controls (default) |
|---|---|
--appheader-height | Minimum bar height (calc(space-10 + space-2 + space-2)) |
--appheader-padding-inline | Bar end padding and the stacked-search inset; the start stays 0 so the brand lines up with the SideNav rail (space-5 wide, space-4 in narrow containers) |
--appheader-gap | Gap between the start, center and end columns (space-4) |
--appheader-background | Bar background (surface-card) |
--appheader-border-color | Bottom border colour, or the full border with radius md (border-faint) |
--appheader-brand-width | Column the default mark centers in (default: --sidenav-width-collapsed, then layout-sidebar-compact). Set --sidenav-width-collapsed on :root and the brand column follows; set this only to break the match |
--appheader-title-size | Product title size (type-size-heading). Set a smaller type size token, e.g. type-size-ui-lg, for a quieter brand; the app-shell example does |
--appheader-search-max-width | Max width of the center column (layout-rail); the column also stays within 40% of the bar |
--appheader-search-min-width | Min width of the center column before the bar stacks (12rem, capped at the column) |
Product top chrome: brand mark on the start, centered kit Input search, trailing actions. Not a page title. Not a sidebar.
import { AppHeader } from "agentic-ds-kit";From contracts/appheader.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| title | string | No | — | Product name next to the mark. Not an h1. Page titles belong on PageHeader. |
| mark | string | No | — | Brand letter. Defaults to the first character of title. Same idea as SideNav mark. Not a branded SVG. |
| markIcon | KitIcon | No | — | Icon mark instead of the letter, on the same brand fill and rail-axis cell: a Lucide name (e.g. Receipt), a Lucide component, or an element. Used when logo is omitted. Same prop on SideNav, so the two marks match. A real logo goes in logo. |
| logo | slot | No | — | Custom mark or wordmark ReactNode. Replaces the default letter mark. Consumers pass their own logo. Do not copy a file-specific brand mark into the kit. |
| search | boolean | No | true | Renders a centered kit Input. Hide only when the shell has no global search. The center column is at least --appheader-search-min-width (12rem) and at most --appheader-search-max-width or 40% of the bar, and the actions keep their width, so search never runs into them; below 38rem it stacks under the bar. |
| searchPlaceholder | string | No | Search | — |
| searchValue | string | No | — | controlled. When set, pair with onSearch. |
| defaultSearchValue | string | No | — | — |
| onSearch | function | No | — | (value: string) => void. Input onChange. |
| searchShortcut | string | No | — | Decorative Input end slot, e.g. ⌘K. Not a keybinding. |
| searchId | string | No | — | Passed to kit Input. Generated when omitted. |
| actions | slot | No | — | kit Buttons. At most one primary. Do not put an assistant/Copilot CTA in the kit. |
| start | slot | No | — | Replaces the start region (default: brand mark or logo, then title). title still names the header landmark. If you host it in the app-shell example (add app-shell) with a props header, start also replaces the Menu Button the shell injects as logo: put AppShellMenuButton inside your start. |
| center | slot | No | — | Replaces the center region (default: the search Input when search is true). null leaves the center empty. Stacks under start and end in narrow containers, like search. |
| end | slot | No | — | Replaces the end region (default: actions). Rendered in a group labelled Actions. At most one primary Button. |
| className | string | No | — | — |
| ariaLabel | string | No | — | header label. Defaults to title, then Application. |
| radius | md | none | No | none | Bar corners. none is a flush full-bleed bar. md is radius-surface-md for an inset floating bar. |
Path to the current page as a hierarchy of links.
Top-of-page title with optional Breadcrumb trail, subtitle, actions, page Tabs, a profile Avatar and a decorative cover.
Docs and catalog sidebar only: title, grouped text-only links, optional decorative icons and muted counts on group and subgroup headers only, an active page pill and optional footer links.
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).