Theme: ← Übersicht Tokens

Modell-Wahl

Kompakte Modell-Auswahl für die Chat-Leiste: aktuelles Modell als Knopf, Panel mit Anbieter-Gruppen, Beschreibung und Merkmal-Badges

Components v1.0.3 AI AppDesktop component.model-selector

Nutzt: ui.icon ui.badge

Beispiele

Anbieter-Gruppen mit Merkmal-Badges (klicken öffnet nach oben)

Eigenschaften

PropTypDefaultBuilder-Label
models *array—Modelle
paddingstring: standard | none | sm | md | lg | xl"standard"Innenabstand (standard = Baustein-Wert)
marginstring: standard | none | sm | md | lg | xl"standard"Aussenabstand
borderstring: standard | none | hairline | strong"standard"Rahmen
radiusstring: standard | none | control | surface | pill"standard"Ecken-Rundung
textColorstring""Textfarbe (Token; leer = Standard)
backgroundColorstring""Hintergrundfarbe (Token; leer = Standard)
shadowstring: standard | none | sm | md | lg"standard"Schatten
widthstring: standard | full"standard"Breite
alignSelfstring: standard | start | center | end"standard"Ausrichtung im Elternteil
anchorstring""Anker-ID (Sprungziel, z. B. fuer Nav-Links)

* Pflicht-Prop

Events & Slots

Events: ⚡ change — im Surface per on: {<event>: {action, params}} verdrahtbar.

Stellschrauben (Komponenten-Tokens)

Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.

TokenDefault
--model-selector-action-primaryvar(--color-action-primary)
--model-selector-border-defaultvar(--color-border-default)
--model-selector-elevation-overlayvar(--elevation-overlay)
--model-selector-radius-controlvar(--radius-control)
--model-selector-radius-smvar(--radius-sm)
--model-selector-surface-overlayvar(--color-surface-overlay)
--model-selector-surface-sunkenvar(--color-surface-sunken)
--model-selector-text-defaultvar(--color-text-default)
--model-selector-text-mutedvar(--color-text-muted)

Genutzte Design-Tokens

border.hairlinecolor.action.primarycolor.border.defaultcolor.surface.overlaycolor.surface.sunkencolor.text.defaultcolor.text.mutedcontainer.xsduration.fasteasing.standardelevation.overlayfont.family.defaultlayer.dropdownradius.controlradius.fullradius.smsize.1size.2size.3size.32size.8text.mdtext.smtext.xstracking.wideweight.semibold

LLM-Notizen

component.model-selector

Kompakte Modell-Auswahl für die Chat-Leiste: aktuelles Modell als Knopf, Panel mit Anbieter-Gruppen und Badges.

Wann nutzen

  • KI-Modell in einer Chat-/Assistenzleiste umschalten.
  • Für allgemeine Mehrfachauswahl component.multi-select, für einfache Optionslisten die ui-Bausteine.

Wichtige Props

  • models * = Array aus { label, provider?, description?, badge?, active? }; active markiert das aktuelle Modell, provider gruppiert im Panel

Beispiel-Node

{ "definition": "component.model-selector", "props": { "models": [ { "label": "GPT-5", "provider": "OpenAI", "description": "Allrounder", "badge": "schnell", "active": true } ] } }

Hinweise

  • Auswahl eines Modells emittiert change.