Sha256: 17a5b8a330e3cee5637c7d128ec1c7c173024ea6ccff2a6e93934d88c7fc1e69

Contents?: true

Size: 499 Bytes

Versions: 1898

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,898 entries across 1,898 versions & 2 rubygems

Version Path
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.10.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.9.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.8.1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.8.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.7.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.6.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.5.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_textarea/docs/_textarea_inline.jsx