Auswahl-Aktionsleiste (Bulk Bar)
Leiste bei Mehrfachauswahl: N ausgewählt + Aktions-Buttons + Auswahl aufheben. In-flow (wie in der Tabelle) oder schwebend (Pille unten). Wiederverwendbar für Kanban-/Listen-/Kachel-Auswahl; dieselben Daten-Haken wie die Tabellen-Auswahl (data-bulkbar/-count/-action/-clear). 1.2.0: Knöpfe sind ui.bu
Nutzt: ui.icon ui.button ui.icon-button component.dropdown
Beispiele
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| actions | array | [] | Aktionen |
| count | number | 0 | Anzahl gewählt |
| label | string | "ausgewählt" | Zähl-Text |
| floating | boolean | false | Schwebend (Pille unten) |
| clearable | boolean | true | Auswahl-aufheben-Knopf |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Genutzte Design-Tokens
LLM-Notizen
component.bulk-bar
Auswahl-Aktionsleiste: „N ausgewählt" + Aktions-Buttons + Auswahl aufheben. In-flow (wie in der Tabelle) oder als schwebende Pille unten (floating). Erscheint bei Mehrfachauswahl.
Wann nutzen
- Bei einer auswählbaren Tabelle (
component.tablemitselectable+bulkActions) rendert die Tabelle diese Leiste bereits selbst — dann NICHT extra einbauen. - Freistehend für Kanban-/Listen-/Kachel-Auswahl, die keine
component.tableist.
Wichtige Props
actions=[{key, label, icon?, tone? (primary|secondary|ghost|danger)}]count= Anzahl gewählt (0 = ausgeblendet; die eigene Steuerung setzt den Wert live)label= Zähl-Text (Default „ausgewählt")floating= schwebende Pille unten zentriert statt in-flowclearable= ✕ zum Aufheben (Default an)
Daten-Haken (für eigene Steuerung)
- Container
data-bulkbar(mithiddenausblenden), Zählerdata-bulk-count, Aktions-Buttonsdata-bulk-action="<key>", Aufhebendata-bulk-clear. IDENTISCH zur Tabellen-Auswahl — dieselbe Controller-Logik greift.
Beispiel-Node
{
"definition": "component.bulk-bar",
"props": {
"count": 3,
"actions": [{ "key": "export", "label": "Exportieren", "icon": "download" }, { "key": "delete", "label": "Löschen", "icon": "trash-2", "tone": "danger" }]
}
}
Hinweise
- Reiner DARSTELLER: Zählen/Ein-/Ausblenden besitzt der Host (Tabellen-Controller bzw. eigener Code über die Daten-Haken).
- Fläche/Elevation aus Tokens (
--color-surface-overlay,--elevation-raised).