Skip to content

Feedback Icon

A status icon enclosed in a rounded, colored box (the “system icon” look).

<script>
import FeedbackIcon from "@invisible-ui/svelte/FeedbackIcon.svelte";
</script>

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" />
PropTypeDefaultDescription
status"info" | "success" | "warning" | "danger" | "neutral""info"
labelstring | undefinedundefined
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.
  • Decorative by default (aria-hidden); pass label to expose it as a role="img" with an accessible name.
  • A built-in icon is provided per status; override it via the default slot.
<FeedbackIcon status="warning" label="Warning" />

Themeable via --ds-feedback-*.