Sha256: 936c4ca9f4deb57f26713cc6177745c425a007eecb07d961e98cef3087aa0eef

Contents?: true

Size: 567 Bytes

Versions: 948

Compression:

Stored size: 567 Bytes

Contents

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

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

  return (
    <div>
      <Select
          inline
          label="Favorite Food"
          name="food"
          options={options}
          {...props}
      />
      <Body
          status="negative"
          {...props}
      />
    </div>
  )
}

export default SelectInline

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