Skip to content
This repository was archived by the owner on Oct 9, 2024. It is now read-only.
This repository was 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

@robbieaverill

Description

@robbieaverill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions