Sha256: 834acf0b166be50cad3015bd8ba57d5ba76a3a293348c9d593c9347e9f8a1b01

Contents?: true

Size: 776 Bytes

Versions: 1919

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,919 entries across 1,919 versions & 2 rubygems

Version Path
playbook_ui-10.17.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.16.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.15.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.15.1.pre.alpha.rubocop.deps app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.15.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.14.1.pre.alpha2 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.14.1.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.14.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.13.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.13.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.13.0.pre.node.update app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.12.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.11.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.10.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.9.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.8.1.pre.alpha.flexdeps app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.9.0.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.8.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.7.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.7.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx