Sha256: 19f033cae3397c81b9fb13606f7ebc0522681a499d7bcf1abdcfd700eed425ae

Contents?: true

Size: 603 Bytes

Versions: 529

Compression:

Stored size: 603 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}
    >
      <Flex>
        <components.Control
          className="text_input"
          {...props}
        />
      </Flex>
    </TextInput>
  </div>
)

export default TypeaheadControl

Version data entries

529 entries across 529 versions & 1 rubygems

Version Path
playbook_ui-14.1.0.pre.alpha.PLAY15063612 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PLAY15063610 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR417addcolorsupdatedefaultcolor3608 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR449rtepreviewerrails3605 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PA1477timestampkit3601 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3600 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.pbntr373enablekitsforradio3595 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.pbntr373enablekitsforradio3593 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.2.0 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3582 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3579 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PBNTR455ganttchartPOC3569 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.fixaction3547 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.1.0.pre.alpha.PA1477timestampkit3536 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.testthemeexport3533 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.updateviewcomponentgem3527 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.PLAY15063526 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.PLAY15063525 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.PLAY15063524 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.0.0.pre.alpha.PLAY15063523 app/pb_kits/playbook/pb_typeahead/components/Control.tsx