Usage

import { Textarea } from '@loomhq/lens'
<Textarea />

Rows

Placeholder

Sizes

Resize

Disabled

Error

If the content of the textarea is invalid

Forwarding refs

Use the ref prop to access the DOM node.

More about forwarding refs.

Props

name
type
default
rows
number
4
size
'small' | 'medium'
'medium'
resize
'none' | 'both' | 'horizontal' | 'vertical'
'both'
error
string
null
value
string
placeholder
string
isDisabled
boolean
onChange
React.ReactEventHandler