sheengemologic ui
All components

Alert

An urgent, persistent message that does not move focus or dismiss itself.@gemologic/sheen · feedback

Playground

<Alert heading="Save failed" tone="danger">Your draft is retained. Try saving again.</Alert>

Variant matrix

Alert composition
tone: info
tone: success
tone: warning
tone: danger

Anatomy

Package
@gemologic/sheen
Source
packages/ui/src/primitives/Notice.tsx
Tokens
  • --sheen-color-info-subtle
  • --sheen-color-info-fg
  • --sheen-color-focus-ring-offset

Accessibility

Role: alertKeyboard: No component-owned keys

Do

  • Use for dynamically appearing important information without stealing focus.

Do not

  • Do not auto-dismiss an alert or focus it when it appears.

Generated props

NameTypeDefaultDescription
tone"info" | "success" | "warning" | "danger"dangerSemantic notice role, independent of the accent preset.
headingstringOptional visible summary; does not change the document heading outline.
Native Solid/HTML attributes remain available and are omitted from this authored-prop view.