Konversation (Chat-Container) — component.conversation
Scrollender Chat-Verlauf: hält den Blick am unteren Rand, zeigt beim Hochscrollen einen Zurück-nach-unten-Knopf — nimmt Nachrichten und AI-Bausteine im Slot auf. 1.2.0: feste Texte mehrsprachig (invisible_i18n). 1.3.0: autoScroll end (opt-in) rollt beim Mount und bei neuem Inhalt ans Ende (auch nach
Beispiele
Verlauf mit zwei Nachrichten (scrollt, haftet unten)
autoScroll end (1.3.0): startet unten und rollt bei neuem Inhalt ans Ende
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
newLabel | string | "" |
downPlacement | string: center | end | "center" |
height | string: auto | sm | md | lg | fill | "md" |
stickToBottom | boolean | true |
autoScroll | string: off | end | "off" |
maxWidth | string: none | md | lg | "lg" |
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
Slot default: akzeptiert component.*, ui.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--conversation-border-default | var(--color-border-default) |
--conversation-elevation-overlay | var(--elevation-overlay) |
--conversation-radius-full | var(--shape-pill) |
--conversation-surface-overlay | var(--color-surface-overlay) |
--conversation-text-default | var(--color-text-default) |
--conversation-text-muted | var(--color-text-muted) |
Genutzte Design-Tokens
app.control-primary border.hairline color.action.on-primary color.action.primary color.border.default color.surface.overlay color.text.default color.text.muted container.lg container.md duration.fast easing.standard elevation.overlay font.family.default size.1 size.3 size.32 size.4 size.8 text.sm weight.medium