rc-select

  • Version 13.2.1
  • Published
  • 282 kB
  • 7 dependencies
  • MIT license

Install

npm i rc-select
yarn add rc-select
pnpm add rc-select

Overview

React Select

Index

Variables

variable OptGroup

const OptGroup: OptionGroupFC;
  • This is a placeholder, not real render in dom

variable Option

const Option: OptionFC;
  • This is a placeholder, not real render in dom

Classes

class Select

class Select<VT> extends React.Component<SelectProps<SelectOptionsType, VT>> {}
  • Typescript not support generic with function component, we have to wrap an class component to handle this.

property blur

blur: () => void;

    property focus

    focus: () => void;

      property OptGroup

      static OptGroup: OptionGroupFC;

        property Option

        static Option: OptionFC;

          property selectRef

          selectRef: any;

            method render

            render: () => any;

              Interfaces

              interface RefSelectProps

              interface RefSelectProps {}

                property blur

                blur: () => void;

                  property focus

                  focus: () => void;

                    property scrollTo

                    scrollTo?: ScrollTo;

                      Type Aliases

                      type SelectProps

                      type ExportedSelectProps<
                      ValueType extends DefaultValueType = DefaultValueType
                      > = SelectProps<SelectOptionsType, ValueType>;

                        Package Files (5)

                        Dependencies (7)

                        Dev Dependencies (14)

                        Peer Dependencies (2)

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rc-select.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rc-select)
                        • HTML
                          <a href="https://www.jsdocs.io/package/rc-select"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>