Sha256: 8d7fd470bcbf30a88ec6137ffe71cf114c77bd64ae279a4549d50c299d426c70

Contents?: true

Size: 667 Bytes

Versions: 2

Compression:

Stored size: 667 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}
        />
        <Button
            onClick={() => alert('Button Clicked!')}
            text="Add"
            variant="secondary"
            {...props}
        />
      </FormGroup>
    </div>
  )
}

export default FormGroupTypeahead

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx