@atlaskit/editor-plugin-block-controls
Version:
Block controls plugin for @atlaskit/editor-core
21 lines (20 loc) • 792 B
TypeScript
/**
* @jsxRuntime classic
* @jsx jsx
*/
import React from 'react';
import { jsx } from '@emotion/react';
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
import type { BlockControlsPlugin } from '../blockControlsPluginType';
interface VisibilityContainerProps {
api?: ExtractInjectionAPI<BlockControlsPlugin>;
children: React.ReactNode;
controlSide?: 'left' | 'right';
forceVisibleOnMouseOut?: boolean;
/**
* Set when the container should not create its own layout box while its descendants retain theirs.
*/
shouldUseDisplayContents?: boolean;
}
export declare const VisibilityContainer: ({ api, children, controlSide, forceVisibleOnMouseOut, shouldUseDisplayContents, }: VisibilityContainerProps) => jsx.JSX.Element;
export {};