`gds-chat` — Chat widget
Acest conținut nu este încă disponibil în limba selectată.
Documentație online (fără download) — citește aici pe Wiki.
Pachete npm: Package Registry · contracte în@gstack/gds-core.
BlockKind: chat
Secțiune paletă: BLOCKS · Class: GdsChatComponent · Pachet: @gstack/gds-angular
Data contract: ChatData din @gstack/gds-core
Ce reprezintă
Section titled “Ce reprezintă”Widget de chat flotant: buton launcher + panou cu mesaje mock bot/user.
Inputs
Section titled “Inputs”| Nume | Tip | Default | Descriere |
|---|---|---|---|
data | ChatData | required | title, greeting, messages[], launcher, placeholder |
Outputs
Section titled “Outputs”Niciunul.
Cum se folosește
Section titled “Cum se folosește”<gds-chat [data]="{ title: 'Asistență', greeting: 'Cum te putem ajuta?', launcher: 'Deschide chat', placeholder: 'Scrie un mesaj…', messages: [ { from: 'bot', text: 'Bună! Sunt asistentul GPay.' }, { from: 'user', text: 'Am o întrebare despre plăți.' }, ]}" />Note pentru agenți (Cursor)
Section titled “Note pentru agenți (Cursor)”- from: ‘bot’ | ‘user’.
- Nu inventa props în afara tipului
ChatData. - Stiluri: doar tokens GDS /
--gds-accent; fără hex hardcodat.
projects/gds-angular/src/lib/components/gds-chat.component.tsprojects/gds-core/src/lib/blocks.ts