You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/storybook/src/FormField.docs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Container component dat label, description, error message, form control en statu
4
4
5
5
## Doel
6
6
7
-
De FormField component is een complete form field container die alle onderdelen samenbrengt: FormFieldLabel (met optionele suffix), FormFieldDescription, FormFieldErrorMessage, de form control zelf, en FormFieldStatus. Het zorgt voor correcte volgorde, spacing en koppeling via aria-attributen. De component gebruikt een `<div>` wrapper met `<label>` element. Voor groep controls (CheckboxGroup, RadioGroup) gebruik je later de FormFieldset component die `<fieldset>` en `<legend>` gebruikt. FormField handelt automatisch ID's af voor aria-describedby koppelingen.
7
+
De FormField component is een complete form field container die alle onderdelen samenbrengt: FormFieldLabel (met optionele suffix), FormFieldDescription, FormFieldErrorMessage, de form control zelf, en FormFieldStatus. Het zorgt voor correcte volgorde, spacing en koppeling via aria-attributen. De component gebruikt een `<div>` wrapper met `<label>` element en is uitsluitend bedoeld voor enkelvoudige inputs. Voor groep controls (CheckboxGroup, RadioGroup) gebruik je [FormFieldset](/docs/components-formfieldset--docs). FormField handelt automatisch ID's af voor aria-describedby koppelingen.
8
8
9
9
> **Codevoorbeeld met context**: De HTML/CSS tab toont een `EmailInput` als representatief child. `FormField` is een wrapper — het form control dat je als child meegeeft bepaalt de daadwerkelijke invoer.
10
10
@@ -18,7 +18,7 @@ De FormField component is een complete form field container die alle onderdelen
18
18
19
19
## Don't use when
20
20
21
-
- Je een groep controls hebt (CheckboxGroup, RadioGroup) — gebruik [FormFieldset](/docs/components-formfieldset--docs) (komt later).
21
+
- Je een groep controls hebt (CheckboxGroup, RadioGroup) — gebruik [FormFieldset](/docs/components-formfieldset--docs).
22
22
- Je alleen een label zonder control nodig hebt — gebruik [FormFieldLabel](/docs/components-formfieldlabel--docs).
23
23
- Je volledige controle wilt over de markup — gebruik de sub-componenten direct.
24
24
@@ -29,7 +29,7 @@ FormField combineert deze sub-componenten in de juiste volgorde:
29
29
1.**FormFieldLabel** (verplicht) - Met optionele suffix
30
30
2.**FormFieldDescription** (optioneel) - Help tekst
31
31
3.**FormFieldErrorMessage** (optioneel) - Foutmelding met icoon
32
-
4.**Form Control** (verplicht) - TextInput, TextArea, CheckboxGroup, etc.
32
+
4.**Form Control** (verplicht) - TextInput, TextArea, of een ander enkelvoudig form control
33
33
5.**FormFieldStatus** (optioneel) - Status feedback met variant
0 commit comments