@udecode/plate-ui-mention
Version:
Media embed UI for Plate
16 lines • 649 B
TypeScript
import { Value } from '@udecode/plate-common';
import { TMentionElement } from '@udecode/plate-mention';
import { StyledElementProps } from '@udecode/plate-styled-components';
export interface MentionElementStyleProps<V extends Value> extends MentionElementProps<V> {
selected?: boolean;
focused?: boolean;
}
export interface MentionElementProps<V extends Value> extends StyledElementProps<V, TMentionElement> {
/**
* Prefix rendered before mention
*/
prefix?: string;
onClick?: (mentionNode: any) => void;
renderLabel?: (mentionable: TMentionElement) => string;
}
//# sourceMappingURL=MentionElement.types.d.ts.map