Sha256: 17a5b8a330e3cee5637c7d128ec1c7c173024ea6ccff2a6e93934d88c7fc1e69

Contents?: true

Size: 499 Bytes

Versions: 1957

Compression:

Stored size: 499 Bytes

Contents

import React, { useState } from 'react'

import Textarea from '../_textarea'

const TextareaInline = (props) => {
  const [value, setValue] = useState('Try clicking into this text.')
  const handleChange = (event) => {
    setValue(event.target.value)
  }
  return (
    <div>
      <Textarea
          inline
          onChange={(e) => handleChange(e)}
          resize="auto"
          rows={1}
          value={value}
          {...props}
      />
    </div>
  )
}

export default TextareaInline

Version data entries

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

Version Path
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5738 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.13.0.pre.rc.3 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.13.0.pre.rc.3 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.12.0.pre.alpha.PLAY1865reactdatepickerreinitializingbug5732 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.PLAY1865reactdatepickerreinitializingbug5732 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5728 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1862buttondisabledlinkbug5716 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5716 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.12.0.pre.alpha.play1862buttondisabledlinkbug5714 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.play1862buttondisabledlinkbug5714 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.13.0.pre.rc.2 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.13.0.pre.rc.2 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.13.0.pre.rc.1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.13.0.pre.rc.1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.13.0.pre.rc.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.13.0.pre.rc.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui_docs-14.12.0.pre.alpha.advancedtablealignmentfixes5693 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-14.12.0.pre.alpha.advancedtablealignmentfixes5693 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx