Sha256: 834acf0b166be50cad3015bd8ba57d5ba76a3a293348c9d593c9347e9f8a1b01

Contents?: true

Size: 776 Bytes

Versions: 1671

Compression:

Stored size: 776 Bytes

Contents

import React from 'react'

import FormGroup from '../_form_group'

import Button from '../../pb_button/_button'
import Typeahead from '../../pb_typeahead/_typeahead'

const FormGroupTypeahead = (props) => {
  const options = [
    { label: 'Windows', value: 'windows' },
    { label: 'Roof', value: 'roof' },
    { label: 'Siding', value: 'siding' },
    { label: 'Doors', value: 'doors' },
  ]

  return (
    <div>
      <FormGroup>
        <Typeahead
            label="Products"
            options={options}
            {...props}
        />
        <Button
            onClick={() => alert('Button Clicked!')}
            text="Add"
            variant="secondary"
            {...props}
        />
      </FormGroup>
    </div>
  )
}

export default FormGroupTypeahead

Version data entries

1,671 entries across 1,671 versions & 2 rubygems

Version Path
playbook_ui-14.9.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.18 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.18 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.17 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.17 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.16 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.16 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.15 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.15 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.14 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.14 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.13 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.13 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.12 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.12 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.11 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.11 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.9.0.pre.rc.10 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-14.9.0.pre.rc.10 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui_docs-14.8.0.pre.alpha.PBNTR713dropdowncustomtriggerbug4696 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx