Skip to main content

ValidationText

ValidationText is a component for Error Handling. Making it easier for developers to use standardized and consistent validation.

Live Editor
Result
Loading...

Working Example

Live Editor
Result
Loading...

Variants

We have 2 variant that we support can see under prop type, default 'error'.

Live Editor
Result
Loading...

We also support min-width using minWidth prop.

Live Editor
Result
Loading...

Props

NameTypeDefault
message
Error or warning message
string
type
Type of Validation
"warning" | "error"
"error"
minWidth
min-width for the component
string
data-{foo}
Data attributes can be used by testing libraries to retrieve components or assert their existence
string
* - the prop is required.