import Textarea from "@ds-kit/textarea"
A basic example of an Textarea component can look like this:
class Example extends React.Component { constructor(props) { super(props) this.state = { value: "", } } render() { return ( <Textarea value={this.state.value} placeholder={"Type some text here..."} onChange={e => this.setState({ value: e.target.value, }) } /> ) } }
<> <Textarea size="sm" placeholder={"Type some text here..."} /> <Textarea size="md" placeholder={"Type some text here..."} /> <Textarea size="lg" placeholder={"Type some text here..."} /> </>
size
"sm"
"md"
"lg"
"md"
lineHeight
string
number
array
"1.25"
fontSize
string
number
array
px
string
number
array
py
string
number
array
width
string
number
array
"100%"
height
string
number
array
color
string
bg
string
maxWidth
string
number
array
borderColor
string
"grey.200"
hoverBorderColor
string
"primary"
hoverBorderOutline
string
"rgba(81,30,233,0.2)"
placeholderColor
string
"grey.700"
value
string
onChange
func
() => {}
children
object
node