UNPKG

@wordpress/widget-dashboard

Version:

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

25 lines • 925 B
import type { WidgetType } from '@wordpress/widget-primitives'; import type { DashboardWidget } from '../../types'; interface WidgetTileControlsProps { widget: DashboardWidget; widgetType: WidgetType; /** * Whether the policy lets the user edit the instance's attributes. */ editable: boolean; /** * Lift the toolbar into the grid's actionable-area slot, for full-bleed * widgets without an in-card header. */ overlay: boolean; } /** * One tile's normal-mode toolbar: the attribute controls and the menu * actions. Subscribes to the instance's runtime actions here, so a * declaration re-renders this toolbar alone. * * @param {WidgetTileControlsProps} props Component props. */ export declare function WidgetTileControls({ widget, widgetType, editable, overlay, }: WidgetTileControlsProps): React.ReactNode; export {}; //# sourceMappingURL=widget-tile-controls.d.ts.map