You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
944 B
30 lines
944 B
import * as React from 'react';
|
|
import { MentionsProps as RcMentionsProps } from 'rc-mentions/lib/Mentions';
|
|
export declare const Option: React.SFC<import("rc-mentions/lib/Option").OptionProps>;
|
|
export declare type MentionPlacement = 'top' | 'bottom';
|
|
export interface OptionProps {
|
|
value: string;
|
|
children: React.ReactNode;
|
|
[key: string]: any;
|
|
}
|
|
export interface MentionProps extends RcMentionsProps {
|
|
loading?: boolean;
|
|
}
|
|
export interface MentionState {
|
|
focused: boolean;
|
|
}
|
|
interface MentionsConfig {
|
|
prefix?: string | string[];
|
|
split?: string;
|
|
}
|
|
interface MentionsEntity {
|
|
prefix: string;
|
|
value: string;
|
|
}
|
|
interface CompoundedComponent extends React.ForwardRefExoticComponent<MentionProps & React.RefAttributes<HTMLElement>> {
|
|
Option: typeof Option;
|
|
getMentions: (value: string, config?: MentionsConfig) => MentionsEntity[];
|
|
}
|
|
declare const Mentions: CompoundedComponent;
|
|
export default Mentions;
|