Sha256: 914a88e94b27a1aaf24d42fcfb0f997f2ddd48339887f87494a8ca1feae79de4

Contents?: true

Size: 641 Bytes

Versions: 294

Compression:

Stored size: 641 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,
}

const TypeaheadControl = (props: Props) => (
  <div className="pb_typeahead_wrapper">
    <TextInput
        dark={props.selectProps.dark}
        error={props.selectProps.error}
        label={props.selectProps.label}
        marginBottom="none"
    >
      <Flex>
        <components.Control
            className="text_input"
            {...props}
        />
      </Flex>
    </TextInput>
  </div>
)

export default TypeaheadControl

Version data entries

294 entries across 294 versions & 1 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.0 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.PBNTR767advancedtablemultiheadercolumns5136 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5121 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.PBNTR775formmatingmaskdefaultvalue5120 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.24 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.23 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.22 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.21 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment5060 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.20 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.19 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.18 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.PLAY1660reactdropzone5020 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.17 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.16 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.play17004992 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.play1703errorstatealignment4991 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.rc.15 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.9.0.pre.alpha.PLAY16264952 app/pb_kits/playbook/pb_typeahead/components/Control.tsx