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-13.33.1.pre.alpha.PLAY14143336 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.33.1.pre.alpha.PLAY14143336 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY14143318 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.33.0.pre.alpha.PLAY14143318 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY14143312 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.33.0.pre.alpha.PLAY14143312 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY14143306 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.33.0.pre.alpha.PLAY14143306 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.33.0.pre.alpha.PLAY14143305 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.33.0.pre.alpha.PLAY14143305 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143297 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143288 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143272 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143271 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.32.0.pre.alpha.PLAY14143267 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx