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.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.7.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.6.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.5.0.pre.alpha.datepickerinput1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.5.0.pre.alpha.phonerails1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.5.0.pre.alpha.filter1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.5.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.4.0.pre.alpha.map1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx
playbook_ui-12.4.0.pre.alpha.devdocstest1 app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx