@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
13 lines • 671 B
TypeScript
/**
* Edit toolbar for the dashboard. In customize mode it surfaces Add widget,
* Layout settings (when grid settings are editable), Cancel, and Done;
* otherwise a single Customize button. Buttons and the overflow menu are
* triggers that flip the shared UI state the overlays react to.
*
* Returns `null` when mounted without `onEditChange`, so hosts that don't
* expose edit mode can keep `Actions` in their tree unconditionally. The
* Customize button also needs the policy in effect to allow `customize`,
* and the Reset to default item needs it to allow `reset`.
*/
export declare function Actions(): React.ReactNode;
//# sourceMappingURL=actions.d.ts.map