Sha256: 01fce58dfb727c270b27a14c87c7ad4b513c544c2728418e8c6083b0898e9490
Contents?: true
Size: 773 Bytes
Versions: 2
Compression:
Stored size: 773 Bytes
Contents
import React, { useState } from 'react' import { Inline, TextInput, Title } from '../../' const InlineDefault = (props) => { const [formValue, setFormValue] = useState('Default Value') const handleInputChange = (event) => { setFormValue(event.target.value) } return ( <div> <Inline {...props} displayKit={ <Title {...props} kitType="Title" size={4} tag="h4" text={formValue} /> } formInput={ <TextInput {...props} onChange={handleInputChange} value={formValue} /> } /> </div> ) } export default InlineDefault
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-8.2.1.pre.alpha1 | app/pb_kits/playbook/pb_inline/docs/_inline_default.jsx |
playbook_ui-8.1.0.pre.alpha1 | app/pb_kits/playbook/pb_inline/docs/_inline_default.jsx |