Skip to content
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

Add built in support for validation error messages on form fields #531

Open
robbieaverill opened this issue Oct 5, 2021 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@robbieaverill
Copy link
Contributor

In our dashboard we often have to use <TextField ... /> and add a custom span/div for validation errors. Ideally our form fields have a prop we can pass an error message to, and the field should render the error messages and change the variant/state/colour as necessary.

image

An example above where the validation error messages in the dashboard don't vertically line up when you have a helptip addon button on one of the fields - if this logic were contained in the UI library then we can fix that problem here one time instead of individually every time in the dashboard.

@robbieaverill robbieaverill added the enhancement New feature or request label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant