`gds-alert` — Alert
Documentație online (fără download) — citește aici pe Wiki.
Pachete npm: Package Registry · contracte în@gstack/gds-core.
BlockKind: alert
Secțiune paletă: BLOCKS · Class: GdsAlertComponent · Pachet: @gstack/gds-angular
Data contract: AlertData din @gstack/gds-core
Ce reprezintă
Section titled “Ce reprezintă”Banner inline de tip info sau warning.
Inputs
Section titled “Inputs”| Nume | Tip | Default | Descriere |
|---|---|---|---|
data | AlertData | required | kind: ‘info' |
Outputs
Section titled “Outputs”Niciunul.
Cum se folosește
Section titled “Cum se folosește”<gds-alert [data]="{ kind: 'warning', text: 'Verifică IDNO-ul înainte de trimitere.' }" />Note pentru agenți (Cursor)
Section titled “Note pentru agenți (Cursor)”- Flutter: widget GdsAlert cu același rol.
- Nu inventa props în afara tipului
AlertData. - Stiluri: doar tokens GDS /
--gds-accent; fără hex hardcodat.
projects/gds-angular/src/lib/components/gds-alert.component.tsprojects/gds-core/src/lib/blocks.ts