Component docs
Loading
import { AppHeader } from "@pixxl-tools/components";
// In Server Components:
import { AppHeader } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
actions | ReactNode | — | Action slot (buttons or links). |
leading | ReactNode | — | Content before the main content (icon, prefix). |
trailing | ReactNode | — | Content after the main content (icon, suffix). |
titleReactNode
Title (any content).
actionsReactNode
Action slot (buttons or links).
leadingReactNode
Content before the main content (icon, prefix).
trailingReactNode
Content after the main content (icon, suffix).
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<AppHeader title="Project" />