Kanban-Board — component.kanban
Spalten-Board mit Karten (Titel, Beschreibung, Badge, Zugewiesene, Link) — horizontal scrollbar; draggable-Prop schaltet Drag & Drop + Tastatur (Strg+Pfeile) frei; opt-in nativePart komponiert lesende CMS-Board-, Spalten- und Kartenfragmente über Slots; 1.4.0 opt-in: Karten im Dialog (trigger), Plus
Beispiele
Auftrags-Board
Verschiebbar (Drag & Drop oder Strg+Pfeile)
1.19: Plus je Spalte öffnet Dialog mit vorbelegter Spalte (addValues), Ziehen mit Maus/Stift/Tastatur
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
lanes | array | [] |
laneFallbackTitle | string | — |
columnScroll | boolean | false |
actionsAsync | boolean | false |
columnWidth | string: sm | md | lg | "sm" |
countStyle | string: muted | brand | "muted" |
columnHeight | string: auto | equal | "auto" |
progressStyle | string: labeled | bar | "labeled" |
titleSize | string: sm | md | lg | "sm" |
columns * | array | — |
cards * | array | — |
trigger | string | "" |
addLabel | string | "" |
addTrigger | string | "" |
moveUrl | string | "" |
moveOp | string | "kanban.move" |
draggable | boolean | false |
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 | "" |
nativePart | string: none | board | column | card | "none" |
title | string | "Statusübersicht" |
tone | string: neutral | info | success | warning | danger | "neutral" |
headingLevel | number: 2 | 3 | 4 | 2 |
showCount | boolean | false |
Events & Slots
Events: navigate, move, moved, move-failed, action, action-failed
Slot default: akzeptiert ui.*, layout.*, component.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--kanban-column-background | var(--color-surface-sunken) |
--kanban-card-background | var(--color-surface-default) |
--kanban-border | var(--color-border-subtle) |
--kanban-native-lane | color-mix(in srgb, var(--color-text-default) 5%, transparent) |
--kanban-native-accent | var(--color-border-strong) |
--kanban-native-avatar-size | var(--size-8) |
--kanban-native-avatar-ring | var(--color-surface-default) |
--kanban-native-avatar-accent | transparent |
--kanban-native-chip-background | var(--color-surface-sunken) |
--kanban-native-prio | var(--color-text-default) |
--kanban-prio | var(--tag-gray-text) |
--kanban-ziel | var(--app-brand, var(--color-action-primary)) |
--kanban-alert-ring | 0 0 0 var(--border-hairline) var(--color-status-danger) |
--kanban-live | var(--app-brand, var(--color-action-primary)) |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.on-primary color.action.primary color.action.secondary color.border.default color.border.strong color.border.subtle color.status.danger color.status.info color.status.success color.status.warning color.surface.default color.surface.hover color.surface.sunken color.text.accent color.text.default color.text.muted container.sm duration.fast duration.slow easing.standard elevation.overlay elevation.raised font.family.default leading.tight radius.control radius.full radius.md radius.surface size.1 size.1-5 size.10 size.16 size.2 size.3 size.4 size.5 size.6 size.8 text.lg text.md text.sm text.xs weight.bold weight.medium weight.semibold