Card — component.card
Inhaltskarte mit Media-, Inhalts- und Footer-Slot. Vorschaukarte (preview) oder kompakte Datensatzkarte (record), beide opt-in. Objektkarte (object, 1.6) als Kachel mit Farbflaeche im Media-Slot fuer section.app-records. 1.7 (opt-in): trigger = Klick auf die Karte oeffnet einen Dialog (data-invisibl
Beispiele
Karte mit Elements in Slots
Kundenprofil
Zusammengesetzt aus ui.heading, ui.text, ui.badge und ui.button — jede Zeile ein eigener Render-Aufruf über die Registry.
Interaktiv, ohne Footer
Hover-Karte
Elevation wechselt beim Hover über Token.
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
padded | boolean | true |
variant | string: standard | preview | record | object | "standard" |
accent | string: | primary | accent | success | warning | danger | info | neutral | series-1 | series-2 | series-3 | series-4 | series-5 | series-6 | series-7 | series-8 | "" |
interactive | boolean | false |
background | string | "" |
href | string | "" |
trigger | string | "" |
hrefLabel | string | "" |
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 | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Slot media: akzeptiert ui.*, layout.* · max 1
Slot default: akzeptiert ui.*, component.*, layout.* · Pflicht
Slot footer: akzeptiert ui.*, component.description-list
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--card-accent | var(--color-action-primary) |
--card-preview-inset | var(--size-2) |
--card-preview-ratio | 20 / 13 |
--card-preview-surface | var(--color-surface-raised) |
--card-record-accent | var(--card-accent, var(--color-action-primary)) |
--card-record-padding | var(--size-4) |
--card-record-title | var(--card-title-size, var(--font-size-heading-4)) |
--card-record-meta-width | var(--size-24) |
--description-list-term-width | var(--card-record-meta-width) |
--card-object-surface | var(--color-surface-sunken) |
Genutzte Design-Tokens
border.emphasis border.hairline color.accent color.action.primary color.border.default color.border.strong color.chart.1 color.chart.2 color.chart.3 color.chart.4 color.chart.5 color.chart.6 color.chart.7 color.chart.8 color.status.danger color.status.info color.status.success color.status.warning color.surface.default color.surface.raised color.surface.sunken color.text.default color.text.muted duration.base duration.fast easing.standard elevation.flat elevation.overlay elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default motion.lift size.05 size.1 size.1-5 size.16 size.2 size.24 size.3 size.4 size.8 text.sm text.xs weight.regular