@atlaskit/editor-plugin-block-type
Version:
BlockType plugin for @atlaskit/editor-core
10 lines (9 loc) • 427 B
TypeScript
import React from 'react';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { BlockTypePlugin } from '../blockTypePluginType';
type HeadingBlockMenuItemProps = {
api: ExtractInjectionAPI<BlockTypePlugin> | undefined;
level: 1 | 2 | 3 | 4 | 5 | 6;
};
export declare const createHeadingBlockMenuItem: ({ level, api }: HeadingBlockMenuItemProps) => () => React.JSX.Element;
export {};