UNPKG

@atlaskit/editor-plugin-block-type

Version:

BlockType plugin for @atlaskit/editor-core

12 lines (11 loc) • 606 B
import React from 'react'; import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types'; import type { BlockMenuItemComponentProps } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType'; import type { BlockTypePlugin } from '../blockTypePluginType'; type HeadingBlockMenuItemProps = { api: ExtractInjectionAPI<BlockTypePlugin> | undefined; isSuggested?: boolean; level: 1 | 2 | 3 | 4 | 5 | 6; }; export declare const createHeadingBlockMenuItem: ({ level, api }: HeadingBlockMenuItemProps) => ({ isSuggested }?: BlockMenuItemComponentProps) => React.JSX.Element; export {};