`gds-form` — Form
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: form
Secțiune paletă: BLOCKS · Class: GdsFormComponent · Pachet: @gstack/gds-angular
Data contract: FormData din @gstack/gds-core
Ce reprezintă
Section titled “Ce reprezintă”Formular mock: câmpuri text / select / toggle + buton submit (UI, fără submit real).
Inputs
Section titled “Inputs”| Nume | Tip | Default | Descriere |
|---|---|---|---|
data | FormData | required | title, fields[], submitLabel |
Outputs
Section titled “Outputs”Niciunul.
Cum se folosește
Section titled “Cum se folosește”<gds-form [data]="{ title: 'Cerere nouă', submitLabel: 'Trimite', fields: [ { label: 'Nume', kind: 'text', required: true, helper: 'Numele complet' }, { label: 'Tip', kind: 'select' }, { label: 'Urgent', kind: 'toggle' }, ]}" />Note pentru agenți (Cursor)
Section titled “Note pentru agenți (Cursor)”- FieldKind: text | select | toggle.
- Poți seta error pe câmp pentru stare invalidă.
- Nu inventa props în afara tipului
FormData. - Stiluri: doar tokens GDS /
--gds-accent; fără hex hardcodat.
projects/gds-angular/src/lib/components/gds-form.component.tsprojects/gds-core/src/lib/blocks.ts