Sha256: e03e015a0ba92643574a79695e5bf9a35918a865dcf7b78c112a9bdfb0e81884
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
import React, { useState } from 'react' import { TextInput } from '../../' const TextInputCustom = () => { const [name, setName] = useState('') const handleUpdateName = ({ target }) => { setName(target.value) } return ( <div> <TextInput label="Custom Label" > <input name="custom-name" onChange={handleUpdateName} placeholder="custom-placeholder" type="text" value={name} /> </TextInput> </div> ) } export default TextInputCustom
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-7.11.1 | app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx |
playbook_ui-7.11.0 | app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx |