App chrome
AppHeader
The 48px bar across the top of every app: brand and app name left, optional global search centre, tenant switcher and user right.
- Provide
appName, and optionallysearch,tenant,user,actions(icon buttons) andlogo(defaults to the Tessera mark). - One per app, fixed to the top, above SideNav and content.
When to use
The top bar of every app: brand, global search, tenant switcher, user menu.
Use something else
Page title and actions → PageHeader.
Do
- Use one per app, fixed at the top.
Don't
- Don't put page-specific actions in the AppHeader.
Props
| Prop | Type |
|---|---|
appName required | string |
logo | React.ReactNode |
homeHref | string |
search | boolean |
searchPlaceholder | string |
tenant | string |
user | string |
actions | React.ReactNode |
onMenu | () => void; className?: string |
Use
const { AppHeader } = window.Tessera;
const el = React.createElement(AppHeader, { /* props */ });