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

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_text_input/docs/_text_input_custom.jsx