Sha256: 1a97e5f30a0b5d353a069bf7c73ee5b3d02839b7869d7cb2a6873c8a261e2ac9

Contents?: true

Size: 750 Bytes

Versions: 1807

Compression:

Stored size: 750 Bytes

Contents

import React, {useState} from 'react'

import Textarea from '../_textarea'

const TextareaDefault = (props) => {
  const [value, setValue] = useState('Default value text')
  const handleChange = (event) => {
    setValue(event.target.value)
  }
  return (
    <div>
      <Textarea
          label="Label"
          rows={4}
          {...props}
      />

      <br />

      <Textarea
          label="Label"
          placeholder="Placeholder text"
          {...props}
      />

      <br />

      <Textarea
          label="Label"
          name="comment"
          onChange={(e) => handleChange(e)}
          placeholder="Placeholder text"
          value={value}
          {...props}
      />

    </div>
  )
}

export default TextareaDefault

Version data entries

1,807 entries across 1,807 versions & 2 rubygems

Version Path
playbook_ui-12.4.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.3.1.pre.alpha.phone1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.3.1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.3.0.pre.alpha.patchtest1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.3.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.2.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.1.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.0.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.20.0.pre.alpha.passthrough1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.20.0.pre.alpha.railsdialog1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.20.0.pre.alpha.focus1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.20.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.19.0.pre.alpha.map1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.19.0.pre.alpha.pagpassthrough1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.19.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.18.0.pre.alpha.pagutility1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.19.0.pre.typeahead1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.18.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.17.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx