1.11.0 • Published 6 months ago

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

Weekly downloads
1,070
License
MIT
Repository
github
Last release
6 months 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.

documentation issue npm

Issues open NPM

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.