Sha256: 61e2ee0045b3cf4f5b95c9813998ee6bfa146cd75d3f176e63b42a64a8fa697e
Contents?: true
Size: 560 Bytes
Versions: 948
Compression:
Stored size: 560 Bytes
Contents
import React, {useState} from 'react' import { Textarea } from 'playbook-ui' const TextareaError = (props) => { const [value, setValue] = useState('default value text') const handleChange = (event) => { setValue(event.target.value) } return ( <div> <Textarea error="This field has an error!" label="Label" name="comment" onChange={(e)=> handleChange(e)} placeholder="Placeholder text" value={value} {...props} /> </div> ) } export default TextareaError
Version data entries
948 entries across 948 versions & 2 rubygems