Component docs
Loading
import { InlineCode } from "@pixxl-tools/components";
// In Server Components:
import { InlineCode } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
tone | "accent" | "neutral" | "primary" | neutral | neutral (default) or primary (accent colour); accent is a deprecated alias of primary. |
tonedefault neutral"accent" | "neutral" | "primary"
neutral (default) or primary (accent colour); accent is a deprecated alias of primary.
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
Call usePersistentTheme once.
Complex object props use fixed fixtures. Primitive props stay editable.
<InlineCode tone="neutral">usePersistentTheme</InlineCode>Pass maxHeight or use tone="accent" for emphasis accent.
<InlineCode>maxHeight</InlineCode> {formatInlineCode("Use `size`.")}Call usePersistentTheme once.
<InlineCode tone="neutral">usePersistentTheme</InlineCode>