Component docs
Loading
import { Message } from "@pixxl-tools/components";
// In Server Components:
import { Message } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
tone | Tone | — | Colour role (neutral, primary, danger, success, warning, info). |
variant | ComponentVariant | — | soft (default, tinted), outline (surface + tone border), ghost. |
actions | ReactNode | — | Action slot (buttons or links). |
description | ReactNode | — | Supporting text. |
icon | FeedbackIcon | — | Leading icon. Default: the tone icon (none for neutral); false hides it. |
live | FeedbackLive | — | Announce changes (see Alert). Default: static, no live role. |
titleReactNode
Title (any content).
toneTone
Colour role (neutral, primary, danger, success, warning, info).
variantComponentVariant
soft (default, tinted), outline (surface + tone border), ghost.
actionsReactNode
Action slot (buttons or links).
descriptionReactNode
Supporting text.
iconFeedbackIcon
Leading icon. Default: the tone icon (none for neutral); false hides it.
liveFeedbackLive
Announce changes (see Alert). Default: static, no live role.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
Complex object props use fixed fixtures. Primitive props stay editable.
<Message tone="info" variant="soft" title="Status">Saved.</Message><Message tone="warning" /><Message tone="info" variant="soft" title="Status">Saved.</Message>