@atlaskit/editor-plugin-panel
Version:
Panel plugin for @atlaskit/editor-core.
11 lines (10 loc) • 553 B
TypeScript
import { PanelType } from '@atlaskit/adf-schema';
/**
* Creates a native DOM SVG element for a panel icon.
* This avoids React Portal rendering delays that cause flickering on SSR and page transitions.
*
* @param panelType - The type of panel (info, note, success, warning, error)
* @param container - The container element to render into
* @returns The created SVG element, or null if panelType doesn't have a standard icon
*/
export declare function renderPanelIcon(panelType: PanelType | undefined, container: HTMLElement): SVGElement | null;