AppHeader API
import { AppHeader } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
bordered | boolean | |
children | React.ReactNode | |
dense | boolean | |
elevation | 'none' | 'low' | 'high' | |
headless | boolean | |
onMenuTrigger | () => void | |
radius | number | string | |
showMenuButton | boolean | 'narrow' | Show the menu button; narrow shows it only at 980px and below, where ui-layout uses its drawer. |
size | 'sm' | 'md' | 'lg' | '1' | '2' | '3' | |
sticky | boolean | |
tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | |
variant | 'surface' | 'soft' | 'outline' | 'solid' |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AppHeader.Start props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AppHeader.Center props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AppHeader.Title props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AppHeader.Subtitle props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
AppHeader.End props
| Prop | Type | Description |
|---|---|---|
as | keyof JSX.IntrinsicElements | |
children | React.ReactNode |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Element: <ui-app-header>
AppHeader renders the ui-app-header custom element from @editora/ui-core, which can also be used without React.
Attributes: bordered, dense, elevation, headless, menu-expanded, radius, show-menu-button, size, sticky, tone, variant
Events: menu-trigger