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
Name | Type | Default |
---|---|---|
message Error or warning message |
| — |
type Type of Validation |
| "error" |
minWidth min-width for the component |
| — |
data-{foo} Data attributes can be used by testing libraries to retrieve components or assert their existence |
| — |
* - the prop is required. |