rc-mentions

  • Version 2.11.1
  • Published
  • 74.7 kB
  • 7 dependencies
  • MIT license

Install

npm i rc-mentions
yarn add rc-mentions
pnpm add rc-mentions

Overview

React Mentions

Index

Variables

variable Mentions

const Mentions: any;

    Interfaces

    interface MentionsProps

    interface MentionsProps extends BaseTextareaAttrs {}

      property autoFocus

      autoFocus?: boolean;

        property children

        children?: React.ReactNode;

          property className

          className?: string;

            property classNames

            classNames?: CommonInputProps['classNames'] & {
            mentions?: string;
            };

              property defaultValue

              defaultValue?: string;

                property direction

                direction?: Direction;

                  property dropdownClassName

                  dropdownClassName?: string;

                    property filterOption

                    filterOption?: false | typeof defaultFilterOption;

                      property getPopupContainer

                      getPopupContainer?: () => HTMLElement;

                        property notFoundContent

                        notFoundContent?: React.ReactNode;

                          property onBlur

                          onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;

                            property onChange

                            onChange?: (text: string) => void;

                              property onFocus

                              onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;

                                property onSearch

                                onSearch?: (text: string, prefix: string) => void;

                                  property onSelect

                                  onSelect?: (option: OptionProps, prefix: string) => void;

                                    property open

                                    open?: boolean;
                                    • Testing usage. Do not use in prod. It will not work as your expect.

                                    property options

                                    options?: DataDrivenOptionProps[];

                                      property placement

                                      placement?: Placement;

                                        property prefix

                                        prefix?: string | string[];

                                          property prefixCls

                                          prefixCls?: string;

                                            property split

                                            split?: string;

                                              property style

                                              style?: React.CSSProperties;

                                                property transitionName

                                                transitionName?: string;

                                                  property validateSearch

                                                  validateSearch?: typeof defaultValidateSearch;

                                                    property value

                                                    value?: string;

                                                      Package Files (2)

                                                      Dependencies (7)

                                                      Dev Dependencies (20)

                                                      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-mentions.

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