Sha256: 773ea66a2749482ece5ef637c60c193520b20cf7487d5136f6f427f3c99c89e1

Contents?: true

Size: 690 Bytes

Versions: 104

Compression:

Stored size: 690 Bytes

Contents

import React from 'react'
import { Button, FormGroup, Typeahead } from '../../'

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

104 entries across 104 versions & 1 rubygems

Version Path
playbook_ui-9.19.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.19.0.pre.alphafonts app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.18.0.flow.bin.alpha app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.18.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.17.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.17.0.pre.decouple.website2 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.16.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.15.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.15.0.pre.decouple.website1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.14.1.alpha.radio.alignment app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.14.1.alpha.highcharts9 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.14.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.13.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.12.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.12.0.pre.text.addon app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.11.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.10.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.10.0.pre.date.time.stacked.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.10.0.pre.alpha2 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.10.0.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx