Sha256: e2e3786a5bd221583f2564d82c189b460b9facb5535e0f65ca1f11a733293e92
Contents?: true
Size: 612 Bytes
Versions: 1978
Compression:
Stored size: 612 Bytes
Contents
import React, { useState } from 'react' import TextInput from '../_text_input' 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
1,978 entries across 1,978 versions & 2 rubygems