Skip to main content
HahlexMillarv0.1.0 Draft
ComponentsDraftWCAG 2.1/2.2 AAZero Gradients@hahlex/millar-ui

AppShell & PageHeader

Product-agnostic application workspace frame with skip-to-main link, semantic sidebar navigation, and decluttered PageHeader.

Interactive Playground

Live component specimen driven directly by Millar tokens in Light and Dark mode.

Operational Directory

10 items · 1 Primary CTA Max
Active section: catalogUse the sidebar navigation items or collapse button above to test AppShell layout switching in real time.
@hahlex/millar-ui
import { AppShell, PageHeader, Button } from "@hahlex/millar-ui";

<AppShell brand={<span>Hahlex</span>} navItems={items}>
  <PageHeader title="Directory" primaryAction={<Button variant="primary">New item</Button>} />
</AppShell>

Props API

AppShell & PageHeader component props
PropTypeDefaultDescription
brandReactNode-Canonical Hahlex lockup or tenant workspace switcher.
navItemsAppShellNavItem[]-Navigation entries with active aria-current='page' state.

Usage Guidelines & Agent Guardrails

When to use
  • Root chrome of every Hahlex operational web application.
Responsive behavior

Fixed 240px left rail with fluid main workspace; mobile menu trigger toggles compact navigation.

Anti-Hallucination Guardrails (AI & Human)
  • Never hardcode education-specific routes or labels inside AppShell.
  • Never omit the skip-to-main-content anchor.

Accessibility & Keyboard Contract

Skip link to #millar-main-content<aside>, <nav aria-label>, <main tabIndex={-1}>aria-current='page' on active nav item
Keyboard interactions
KeyBehavior
TabFirst focusable element is Skip to main content.