Sha256: 44ab6a8777b680576675b0da5f2e196b1e18774e2e7270f3e3ef8a6d71fa55fb

Contents?: true

Size: 664 Bytes

Versions: 948

Compression:

Stored size: 664 Bytes

Contents

import React from 'react'
import { Body, Select } from 'playbook-ui'

const SelectError = (props) => {
  const options = [
    {
      value: '1',
      text: 'Burgers',
    },
    {
      value: '2',
      text: 'Pizza',
    },
    {
      value: '3',
      text: 'Tacos',
    },
  ]

  return (
    <div>
      <Select
          error="Please make a valid selection"
          label="Favorite Food"
          name="food"
          options={options}
          value="2"
          {...props}
      />
      <Body
          error="Please make a valid selection"
          status="negative"
          {...props}
      />
    </div>
  )
}

export default SelectError

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_select/docs/_select_error.jsx
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_select/docs/_select_error.jsx
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_select/docs/_select_error.jsx