Component docs
Loading
import { StatusBox } from "@pixxl-tools/components";
// In Server Components:
import { StatusBox } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | — | Visible label (also the accessible name). |
actions | ReactNode | — | Action slot (buttons or links). |
description | ReactNode | — | Supporting text. |
icon | FeedbackIcon | — | Leading icon. Default: the tone icon for status tones; false hides it. |
tone | Tone | — | Colour role (neutral, primary, danger, success, warning, info). |
value | ReactNode | — | Current value (controlled); null where it means "nothing selected". |
labelReactNode
Visible label (also the accessible name).
actionsReactNode
Action slot (buttons or links).
descriptionReactNode
Supporting text.
iconFeedbackIcon
Leading icon. Default: the tone icon for status tones; false hides it.
toneTone
Colour role (neutral, primary, danger, success, warning, info).
valueReactNode
Current value (controlled); null where it means "nothing selected".
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<StatusBox label="Export" />