-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormField components #2311
Comments
This is a React specific issue. I would argue, that we should in general skip the
When the base component is rendering a actual HTML element, as this clean and a very common pattern: When using This separation makes it easier to resonate and exemplify about how our design system translates between React and HTML and other frameworks, as the functional That said, I think we can maybe flip the question, and ask;
Could the interface then be something like:
...where
(dropping |
Root
pattern?
Some designsystems use generic form classes/components, usually called
form-group
orform-field
for their form components to have consistent placement of label, descriptions and such around an input/textarea/select element.Notes:
This could be possible if we split up
Textfield
into multiple sub-components or generic form scaffolding components.More generic, example from Radix:
Or more scoped, Example from Ark UI
Tasks
The text was updated successfully, but these errors were encountered: