Sha256: 63cb49818b711fa2cbd04fd8060c33758907bb889f2ae58c737abf73b3d6d7c8
Contents?: true
Size: 607 Bytes
Versions: 94
Compression:
Stored size: 607 Bytes
Contents
import React, { useState } from 'react' import { TextInput } from '../../' const TextInputCustom = (props) => { const [name, setName] = useState('') const handleUpdateName = ({ target }) => { setName(target.value) } return ( <div> <TextInput label="Custom Label" {...props} > <input name="custom-name" onChange={handleUpdateName} placeholder="custom-placeholder" type="text" value={name} {...props} /> </TextInput> </div> ) } export default TextInputCustom
Version data entries
94 entries across 94 versions & 1 rubygems