UNPKG

@wordpress/widget-dashboard

Version:

Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.

22 lines • 844 B
import type { ReactNode } from 'react'; import type { DashboardWidget } from '../../types'; export interface WidgetChromeProps { widget: DashboardWidget<unknown>; index: number; /** * Lifted by `@wordpress/grid` into a sibling slot outside `Card.Root`, * for full-bleed widgets with no in-card header to host the toolbar. */ actionableArea?: ReactNode; /** * Toolbar rendered in the in-card header (framed and content-bleed). */ headerToolbar?: ReactNode; className?: string; } /** * Dashboard chrome: wraps `WidgetFrame` in the grid tile's `Card.Root`, owning * the missing and resolving states. */ export declare const WidgetChrome: import("react").ForwardRefExoticComponent<WidgetChromeProps & import("react").RefAttributes<HTMLDivElement>>; //# sourceMappingURL=widget-chrome.d.ts.map