Widget-Karte — component.widget
Widget-Karte mit optionalem Icon, Aktionen, Datenzustand und Metazeile. Desktop-Variante fuer ruhige Daten-Rails. 1.4.5: Widget-Icons mit reinem Farbwechsel, Hafti-Aktionen mit weisser Schrift und Timer mit separaten Dauer-Pfeilen. 1.5.1: Leere Checklisten-Detailzeilen per Attribut statt :has(:place
Beispiele
Live-Widget mit Fuß-Aktion
Widget mit Alle-anzeigen-Fuß
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
title * | string | — |
live | boolean | false |
liveLabel | string | "Live" |
actionLabel | string | "" |
actionHref | string | "" |
padded | boolean | true |
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 | "" |
appearance | string: standard | glass | scene | system | "standard" |
variant | string: default | desktop | "default" |
iconImage | string | "" |
icon | string | "" |
state | string: ready | loading | empty | error | disconnected | cached | "ready" |
meta | string | "" |
Events & Slots
Slot default: akzeptiert ui.*, component.*, layout.* · Pflicht
Slot actions: akzeptiert ui.*, component.*, layout.*
Slot footer: akzeptiert ui.*, component.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--widget-background | var(--color-surface-default) |
--widget-border | var(--color-border-subtle) |
--widget-border-width | var(--border-hairline) |
--widget-radius | var(--shape-surface) |
--widget-pad | var(--density-pad) |
--glass-opacity-scale | var(--widget-card-opacity-scale) |
--window-frame-tint | color-mix(in srgb, var(--widget-card-color) clamp(0%, calc(75% * var(--glass-opacity-scale)), 100%), transparent) |
--window-frame-header-tint | color-mix(in srgb, var(--widget-card-header-color) clamp(0%, calc(var(--glass-ref-card-header-opacity) * var(--glass-opacity-scale)), 100%), transparent) |
--widget-card-filter | var(--glass-debug-widget-cards-backdrop-filter, blur(calc(var(--widget-material-base-blur) * var(--widget-card-blur-scale))) saturate(var(--material-glass-saturation))) |
--widget-card-shadow | none |
--widget-label-shadow | 0 1px calc(var(--widget-card-text-shadow-blur) * 1px) rgb(0 0 0 / var(--widget-card-text-shadow-scale)) |
--color-text-default | #fff |
--color-text-muted | rgb(255 255 255 / .82) |
--material-glass-ink | #fff |
--material-glass-muted | rgb(255 255 255 / .82) |
--color-border-subtle | rgb(255 255 255 / .13) |
--chart-text | #fff |
--icon-button-surface-sunken | transparent |
--button-color | var(--palette-neutral-0) |
--button-background-hover | var(--color-action-primary) |
--button-background-active | var(--color-action-primary-active) |
--widget-place-gradient | linear-gradient(145deg,#cbd2d8 0%,#eef1f4 52%,var(--palette-neutral-0,#fff) 100%) |
--widget-scroll-fade-top | 0px |
Genutzte Design-Tokens
border.hairline color.accent color.action.on-primary color.action.primary color.action.primary-active color.border.subtle color.status.danger color.surface.default color.surface.hover color.text.default color.text.muted density.pad easing.standard elevation.raised font.family.default leading.tight palette.neutral.0 radius.control radius.full radius.lg radius.surface size.1 size.14 size.16 size.2 size.3 size.4 size.5 size.6 size.8 size.9 text.2xl text.2xs text.md text.sm text.xl text.xs tracking.wide weight.bold weight.semibold