Sha256: f9bfba173bd0fc6cc81020fa01ec4160cde5c77901ad373ff27cbebab3879d02

Contents?: true

Size: 704 Bytes

Versions: 5

Compression:

Stored size: 704 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: {
    dark?: boolean,
    label: string,
    error?: string,
  },
}

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

5 entries across 5 versions & 1 rubygems

Version Path
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5341 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5340 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.11.1.pre.alpha.PLAY1750pbcontenttagkitbutton5339 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.12.0.pre.rc.3 app/pb_kits/playbook/pb_typeahead/components/Control.tsx
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_typeahead/components/Control.tsx