Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant