designsystemet
designsystemet copied to clipboard
POC: Field component
Create a proof of concept pattern in React and CSS for generic container components for common form elements.
Some designsystems use generic form classes, usually called form-group
for their form components to have consistent placement of label, descriptions and such around an input/textarea/select element.
Do we want to use this approach? Pros and cons?
Notes:
- https://designsystem.dk/kode/komponenter/inputfelter/
- https://design-system.service.gov.uk/components/text-input/