1.11.0 • Published 6 months ago
@s-ui/react-atom-validation-text v1.11.0
AtomValidationText
Validation text is used for indicating whether the entered data is correct. It is provided by using the "Help Text" plus one color each.
Installation
$ npm install @s-ui/react-atom-validation-text --saveUsage
Add text
Just add a text, set through the prop text.
Types
There are defined 3 types (success, error and alert) available at the exported object AtomValidationTextTypes and that can be set through the prop type.
Basic usage
import AtomValidationText from '@s-ui/react-atom-validation-text'
return (<AtomValidationText text="This is the text." type="alert" />)Find full description and more examples in the demo page.