ShellHeader

Console application header: brand with prefix, dropdown nav menus, global icon actions, hamburger, skip-to-content

Category: navigation · WCAG 2.2-AA · navigation, header, shell, console, menu, app-shell

States

Props

PropTypeDefaultDescription
brandShellHeaderBrand | ReactNodeBrand: { prefix?, name, href? } or free-form node
navShellHeaderNavItem[]Top nav: links ({ label, href, active?, onClick? }) or dropdown menus ({ label, items })
actionsShellHeaderAction[]Right-aligned global icon actions with aria-pressed
endReactNodeFree-form trailing slot (user menu, theme switcher)
onMenuClick() => voidRenders the hamburger button; call shell.toggleSideNav
menuExpandedbooleanaria-expanded for the hamburger button
skipToContentHrefstring | false'#cascade-main'Skip-link target; false disables the link
labelsShellHeaderLabelsi18n overrides for built-in strings

Design tokens

When to use

When not to use

How to build an accessible ShellHeader in React →

Examples

Console header

Brand with prefix, dropdown nav, global icon action

import { Bell } from '@cascivo/icons'

<ShellHeader
  brand={{ prefix: 'cascivo', name: 'Console', href: '/' }}
  nav={[
    { label: 'Dashboard', href: '/dash', active: true },
    { label: 'Manage', items: [{ label: 'Users', href: '/users' }] },
  ]}
  actions={[{ id: 'notifications', label: 'Notifications', icon: <Bell /> }]}
/>

Related components

← Back to docs