Sha256: 61e2ee0045b3cf4f5b95c9813998ee6bfa146cd75d3f176e63b42a64a8fa697e

Contents?: true

Size: 560 Bytes

Versions: 948

Compression:

Stored size: 560 Bytes

Contents

import React, {useState} from 'react'
import { Textarea } from 'playbook-ui'

const TextareaError = (props) => {
  const [value, setValue] = useState('default value text')
  const handleChange = (event) => {
    setValue(event.target.value)
  }
  return (
    <div>
      <Textarea
          error="This field has an error!"
          label="Label"
          name="comment"
          onChange={(e)=> handleChange(e)}
          placeholder="Placeholder text"
          value={value}
          {...props}
      />

    </div>
  )
}

export default TextareaError

Version data entries

948 entries across 948 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx