Skip to main content
Version: Next

AppHeader API

import { AppHeader } from '@editora/ui-react';

Props​

PropTypeDescription
borderedboolean
childrenReact.ReactNode
denseboolean
elevation'none' | 'low' | 'high'
headlessboolean
onMenuTrigger() => void
radiusnumber | string
showMenuButtonboolean | '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'
stickyboolean
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​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AppHeader.Center props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AppHeader.Title props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AppHeader.Subtitle props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.ReactNode

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

AppHeader.End props​

PropTypeDescription
askeyof JSX.IntrinsicElements
childrenReact.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