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.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.0.0.pre.alpha.PLAY14733479 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.0.0.pre.alpha.dependabotnpmandyarnreactjoyride2823478 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.0.0.pre.alpha.PLAY14113475 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.0.0.pre.alpha.PLAY14113475 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.0.0.pre.alpha.play1447alphatest3462 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.0.0.pre.alpha.play1447alphatest3462 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-14.1.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-14.1.0 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3455 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.34.1.pre.alpha.play1447addrequiredicons3451 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.34.1.pre.alpha.PLAY14043436 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.34.1.pre.alpha.PLAY14043436 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3413 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui_docs-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx
playbook_ui-13.34.1.pre.alpha.pbntr258paginationkitforreact3411 app/pb_kits/playbook/pb_textarea/docs/_textarea_error.jsx