@atlaskit/editor-plugin-block-controls
Version:
Block controls plugin for @atlaskit/editor-core
22 lines (21 loc) • 834 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;
isPersistent?: 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, isPersistent, shouldUseDisplayContents, }: VisibilityContainerProps) => jsx.JSX.Element;
export {};