Sha256: 532682503242cc7d3a84206a63474b26ce030986161714d8508d6f668a7ed9c1
Contents?: true
Size: 563 Bytes
Versions: 136
Compression:
Stored size: 563 Bytes
Contents
import React, { useState } from 'react' import { TextInput, } from '../..' const TextInputError = (props) => { const [email, setEmail] = useState('') const handleUpdateEmail = ({ target }) => { setEmail(target.value) } return ( <div> <TextInput error="Please enter a valid email address" label="Email Address" onChange={handleUpdateEmail} placeholder="Enter email address" type="email" value={email} {...props} /> </div> ) } export default TextInputError
Version data entries
136 entries across 136 versions & 1 rubygems