Sha256: 834acf0b166be50cad3015bd8ba57d5ba76a3a293348c9d593c9347e9f8a1b01

Contents?: true

Size: 776 Bytes

Versions: 1648

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

Version Path
playbook_ui-10.0.3.pre.alpha.walkthrough app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.1.alpha.railscusticon app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.2.pre.alpha.pre.iconfix app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.1.alpha.rtflexfix app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.0.pre.alphafonts app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-10.0.0 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-9.19.0.pre.alpha.pre.fonts2 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx