feedback — wyrd.component.alert

Alert

Non-dismissible status message surface with optional title and icon slots.

Install @wyrd-company/react or the Flutter package and use it directly — your DESIGN.md does the styling.

01

Examples

Generated from the contract's examples block. Previews are the published @wyrd-company/react component, themed by the brand's role tokens — flip the site's light/dark toggle and they follow.

Code target Applies to every example on component pages.
info state: default
Scheduled maintenance
The component registry will be read-only from 02:00 to 02:30 UTC.
Usage
import { WyrdAlert } from "@wyrd-company/react";

<WyrdAlert variant="info" title="Scheduled maintenance">
  The component registry will be read-only from 02:00 to 02:30 UTC.
</WyrdAlert>
success state: default
Settings saved
Your design-system preferences are ready for the next generation run.
Usage
import { WyrdAlert } from "@wyrd-company/react";

<WyrdAlert variant="success" title="Settings saved">
  Your design-system preferences are ready for the next generation run.
</WyrdAlert>
warning state: default
Unsaved changes
Save or discard your token edits before switching brands.
Usage
import { WyrdAlert } from "@wyrd-company/react";

<WyrdAlert variant="warning" title="Unsaved changes">
  Save or discard your token edits before switching brands.
</WyrdAlert>
danger state: default
Deployment failed
Resolve the contract drift before publishing this release.
Usage
import { WyrdAlert } from "@wyrd-company/react";

<WyrdAlert variant="danger" title="Deployment failed">
  Resolve the contract drift before publishing this release.
</WyrdAlert>
02

Properties

NameTypeDefaultSummary
variant info | success | warning | danger info Visual status tone.
03

Slots & events

SlotCardinalityAcceptsSummary
content exactly-one text, node Primary alert message content.
title zero-or-one text, node Optional short heading for the alert.
icon zero-or-one icon Optional decorative status icon.
04

Tokens

The contract's token bindings. Open the shared contextual sidebar from any example; primary swatches reflect the color you pick there. Error swatches show the active preset's values; editing any knob switches to custom and resets error to TWW · Ink.

BindingToken
info.background color.secondary
info.foreground color.on-secondary
info.border-color color.primary
success.background color.success-container
success.foreground color.on-success-container
success.border-color color.success
warning.background color.warning-container
warning.foreground color.on-warning-container
warning.border-color color.warning
danger.background color.error-container
danger.foreground color.on-error-container
danger.border-color color.error
radius rounded.md
padding-x spacing.md
padding-y spacing.sm
gap spacing.sm
border-width 1px
title typography.label-md
content typography.body-md
05

States

StateSourceSummary
default platform Informational status alert.
06

Accessibility

From the contract's accessibility obligations. Role status; Alert content provides the announced status text.

  • Web projections expose role=status as a polite live region.
  • Urgent or interruptive alerts are the host application's responsibility to escalate.
  • The optional icon is decorative unless the host supplies semantic content inside it.
  • Verified under: rtl, reduced-motion, cvd-deuteranopia, density-compact, text-expansion.
07

SDUI

Status: serializable. Alert serializes its variant and slotted content; hosts choose whether a status should be escalated beyond polite status semantics.

SerializableMembers
Propertiesvariant
Slotscontent, title, icon
Events
The Wyrding Way — a contract-first design system. © Wyrd Company