@nexusui/components
Version:
These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.
20 lines (19 loc) • 799 B
TypeScript
import { LexicalEditor } from 'lexical';
import { TranslateFuncType } from '../../../util/models';
import { ActionItem } from '../../../ActionGroup';
export type CommentToolboxActionItem = Omit<ActionItem, 'onClick'> & {
onClick: (e: React.MouseEvent<HTMLElement, MouseEvent>, editor: LexicalEditor) => void;
};
export interface IToolbarPlugin {
state?: 'add' | 'edit';
onSave?: (editor: LexicalEditor) => void;
onCancel?: () => void;
max?: number;
moreActions?: ReadonlyArray<CommentToolboxActionItem>;
defaultExpanded?: boolean;
isDataChanged?: boolean;
hasAttachments?: boolean;
acceptableMimeTypes?: ReadonlyArray<string>;
t: TranslateFuncType;
}
export declare const ToolbarPlugin: (props: IToolbarPlugin) => import("react/jsx-runtime").JSX.Element;