@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
26 lines • 979 B
TypeScript
import type { ReactNode } from 'react';
import type { WidgetType } from '@wordpress/widget-primitives';
import type { DashboardWidget } from '../../types';
export declare function LoadingOverlay(): import("react").JSX.Element;
export interface WidgetFrameProps {
widget: DashboardWidget<unknown>;
widgetType: WidgetType;
titleId: string;
/**
* Inert the body and identity while customizing.
*/
editMode?: boolean;
/**
* Toolbar shown beside the identity in the in-card header.
*/
headerToolbar?: ReactNode;
}
/**
* Shared framing: `presentation` into header, content, and the actions footer,
* with the error/loading boundaries. Hosts supply the `Card.Root` and their
* own concerns.
*
* @param {WidgetFrameProps} props Component props.
*/
export declare function WidgetFrame({ widget, widgetType, titleId, editMode, headerToolbar, }: WidgetFrameProps): import("react").JSX.Element;
//# sourceMappingURL=widget-frame.d.ts.map