Kontext-Anzeige — component.context
Auslastung des Kontextfensters: Balken mit belegten/freien Token, Warn-Ton ab Schwellwert, optional Kosten und Modell-Angabe 1.1: feste Texte mehrsprachig (invisible_i18n). 1.2.0 (28.10.2026, opt-in, nex, wingQ-Chat): href = die Anzeige ist ein Link, action=button = ein Knopf (data-context-action, E
Componentv1.2.0AIweb.applicationdesktop.shellbuilder.preview
Beispiele
Normal (unter 70 %)
Kontext21%
Warnung (ab 70 %)
Kontext78%
Kritisch (ab 90 %), kompakt
Kontext95%
Als Knopf (1.2.0, action=button) - z. B. Ausloeser der Sitzungs-Uebersicht
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
used * | number | — |
total * | number | — |
model | string | "" |
cost | string | "" |
compact | boolean | false |
href | string | "" |
action | string: | button | "" |
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 | "" |
Events & Slots
Events: action
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--context-tone | var(--color-status-success) |
Genutzte Design-Tokens
color.status.danger color.status.success color.status.warning color.surface.sunken color.text.default color.text.muted focus.ring-color focus.ring-offset focus.ring-width font.family.default radius.full radius.sm size.1 size.24 size.32 text.xs weight.semibold