Hinweis — component.alert
Hinweis-Box in vier Tönen mit Icon, optional schließbar. 1.2: feste Texte mehrsprachig (invisible_i18n). 1.3.0: title optional.
Beispiele
Info
Version 2.1 bringt den Daten-Service.
Erfolg, schließbar (X klickbar)
Warnung
Artikel X-100: nur noch 3 Stück.
Fehler
Die Karte wurde abgelehnt.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
tone | string: info | success | warning | danger | "info" |
title | string | "" |
text | string | "" |
dismissible | boolean | false |
spacing | string: default | none | sm | md | lg | xl | "default" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: close
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--alert-surface | var(--color-status-info-surface) |
--alert-accent | var(--color-status-info) |
Genutzte Design-Tokens
border.hairline color.status.danger color.status.danger-surface color.status.info color.status.info-surface color.status.success color.status.success-surface color.status.warning color.status.warning-surface color.surface.default color.text.default color.text.muted duration.fast easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default leading.base radius.control radius.full size.05 size.12 size.3 size.4 size.6 size.8 text.md text.sm weight.semibold