Sha256: 0d5a71729acb09d6618820895d71e410b675c795958a21b6db766476148f2ca8

Contents?: true

Size: 558 Bytes

Versions: 6

Compression:

Stored size: 558 Bytes

Contents

import React, {Component} from 'react'

import Select from 'react-select'

type Props = {
  multi?: boolean,
  autosize?: boolean,
  autoload?: boolean,
  async?: boolean,
  disabled?: boolean,
}

export default class SearchCollectionSelect extends Component<Props> {
  static defaultProps = {
    multi: true,
    autosize: true,
    autoload: true,
    async: true,
    disabled: false,
  }
  props: Props
  render() {
    if(this.props.async) {
      return <Select.Async {...this.props}/>;
    } else {
      return <Select {...this.props}/>;
    }
  }
}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
playbook_ui-2.7.2 components/SearchCollectionSelect/SearchCollectionSelect.jsx
playbook_ui-2.7.1 components/SearchCollectionSelect/SearchCollectionSelect.jsx
playbook_ui-2.7.0 components/SearchCollectionSelect/SearchCollectionSelect.jsx
playbook_ui-2.6.0 components/SearchCollectionSelect/SearchCollectionSelect.jsx
playbook_ui-2.5.0 components/SearchCollectionSelect/SearchCollectionSelect.jsx
nitro_sg-3.0.2 components/SearchCollectionSelect/SearchCollectionSelect.jsx