1.9.0 • Published 2 years ago

@s-ui/react-atom-validation-text v1.9.0

Weekly downloads
1,070
License
MIT
Repository
-
Last release
2 years ago

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 --save

Usage

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.