@s-ui/react-atom-textarea
v2.21.0
Published
AtomTextarea a component that wraps a textarea displaying the text passed in the `value` prop
Downloads
8,649
Maintainers
Keywords
Readme
AtomTextarea
AtomTextarea a component that wraps a textarea displaying the text passed in the value
prop
Installation
$ npm install @s-ui/react-atom-textarea --save
Usage
After importing the component AtomTextarea
like this
import AtomTextarea from '@s-ui/react-atom-textarea'
Basic usage
<AtomTextarea value="Saul Bass on failure" />
Long size
<AtomTextarea size="long" value="Saul Bass on failure: Failure is built into creativity" />
With placeholder
<AtomTextarea placeholder="Write something cool here..." />
Textarea States
The component can receive a success
, error
or alert
state, to highlight his border with colors defined on sui-theme.
<AtomTextarea state="success" />
Find full description and more examples in the demo page.