Sha256: 090863b4c0fe9b4124d2050471e776c1bc7c8b7e4836a6f75d4ebd1e3ca951b2

Contents?: true

Size: 757 Bytes

Versions: 6

Compression:

Stored size: 757 Bytes

Contents

import React from 'react'
import { components } from 'react-select'

import Flex from '../../pb_flex/_flex'
import TextInput from '../../pb_text_input/_text_input'

type Props = {
  selectProps: any,
  marginBottom?: string,
}

const TypeaheadControl = (props: Props) => {
  const { selectProps, marginBottom } = props
  const { dark, error, label } = selectProps

  return (
    <div className="pb_typeahead_wrapper">
      <TextInput
          dark={dark}
          error={error}
          label={label}
          marginBottom={marginBottom}
      >
        <Flex>
          <components.Control
              className="text_input"
              {...props}
          />
        </Flex>
      </TextInput>
    </div>
  )
}

export default TypeaheadControl

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
playbook_ui-14.4.0.pre.rc.0 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.3.0 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.3.0.pre.rc.12 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.3.0.pre.rc.11 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.2.1.pre.alpha.PBNTR479removeextraspacingfromradiochildren3671 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.2.1.pre.alpha.PBNTR479removeextraspacingfromradiochildren3669 app/pb_kits/playbook/pb_typeahead/components/Control.tsx