Feedback Icon
A status icon enclosed in a rounded, colored box (the “system icon” look).
Import
Section titled “Import”<script> import FeedbackIcon from "@invisible-ui/svelte/FeedbackIcon.svelte";</script><script setup> import { FeedbackIcon } from "@invisible-ui/vue";</script>import { FeedbackIcon } from "@invisible-ui/react";<script type="module"> import "@invisible-ui/elements/define";</script>
<ds-feedback-icon></ds-feedback-icon>In Elements:
<ds-feedback-icon status="success" label="Saved"></ds-feedback-icon><ds-feedback-icon status="warning" box="solid" shape="round"></ds-feedback-icon>In React, children replace the built-in glyph:
<FeedbackIcon status="success" label="Saved" /><FeedbackIcon status="warning" box="solid" shape="round" />| Prop | Type | Default | Description |
|---|---|---|---|
status | "info" | "success" | "warning" | "danger" | "neutral" | "info" | |
label | string | undefined | undefined | |
box | "tint" | "transparent" | "solid" | "tint" | Box treatment behind the glyph: - "tint" (default): a soft status-colored chip. - "transparent": no box — just the colored glyph. Use on already-tinted surfaces (e.g. inside a colored Alert) so the chip doesn't clash. - "solid": a full status-colored box with a contrasting (white) glyph. |
shape | "rounded" | "round" | "rounded" | Box shape — "rounded" (default) or a full "round" circle. |
| Prop | Type | Default | Description |
|---|---|---|---|
status | FeedbackStatus | "info" | Feedback status: info | success | warning | danger | neutral. |
label | string | undefined | Accessible name. When omitted the box is decorative (aria-hidden). |
box | "tint" | "transparent" | "solid" | "tint" | Box treatment behind the glyph: - "tint" (default): a soft status-colored chip. - "transparent": no box — just the colored glyph. Use on already-tinted surfaces (e.g. inside a colored InlineNotification) so the chip doesn't clash. - "solid": a full status-colored box with a contrasting (white) glyph. |
shape | "rounded" | "round" | "rounded" | Box shape — "rounded" (default) or a full "round" circle. |
Slots: default.
| Prop | Type | Default | Description |
|---|---|---|---|
status | FeedbackStatus | "info" | Feedback status: info | success | warning | danger | neutral. |
label | string | — | Accessible name. When omitted the box is decorative (aria-hidden). |
box | "tint" | "transparent" | "solid" | "tint" | Box treatment behind the glyph: - "tint" (default): a soft status-coloured chip. - "transparent": the coloured glyph alone. Use it on surfaces that are already tinted, such as an Inline Notification, so the chip does not clash. - "solid": a full status-coloured box with a contrasting glyph. |
shape | "rounded" | "round" | "rounded" | Box shape: "rounded" (default) or a full "round" circle. |
children | ReactNode | — | A custom glyph, shown in place of the built-in one. |
| Attribute | Reactive | Description |
|---|---|---|
status | yes | info|success|warning|danger|neutral; "info" by default |
label | yes | the accessible name |
box | yes | tint|transparent|solid; "tint" by default |
shape | yes | rounded|round; "rounded" by default |
Reactive attributes re-render the element when they change after the first render.
Accessibility
Section titled “Accessibility”- Decorative by default (
aria-hidden); passlabelto expose it as arole="img"with an accessible name. - A built-in icon is provided per status; override it via the default slot.
Example
Section titled “Example”<FeedbackIcon status="warning" label="Warning" />Themeable via --ds-feedback-*.