Sha256: 1a97e5f30a0b5d353a069bf7c73ee5b3d02839b7869d7cb2a6873c8a261e2ac9
Contents?: true
Size: 750 Bytes
Versions: 1807
Compression:
Stored size: 750 Bytes
Contents
import React, {useState} from 'react' import Textarea from '../_textarea' const TextareaDefault = (props) => { const [value, setValue] = useState('Default value text') const handleChange = (event) => { setValue(event.target.value) } return ( <div> <Textarea label="Label" rows={4} {...props} /> <br /> <Textarea label="Label" placeholder="Placeholder text" {...props} /> <br /> <Textarea label="Label" name="comment" onChange={(e) => handleChange(e)} placeholder="Placeholder text" value={value} {...props} /> </div> ) } export default TextareaDefault
Version data entries
1,807 entries across 1,807 versions & 2 rubygems