@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
19 lines • 592 B
TypeScript
import type { ReactNode } from 'react';
export interface WidgetToolbarProps {
/**
* The active mode's controls.
*/
children: ReactNode;
/**
* Lift the toolbar with a shadow while customizing.
*/
editMode?: boolean;
}
/**
* The per-tile toolbar chip holding the active mode's controls.
* Always visible; lifted with a shadow only while customizing.
*
* @param {WidgetToolbarProps} props Component props.
*/
export declare function WidgetToolbar({ children, editMode, }: WidgetToolbarProps): React.ReactNode;
//# sourceMappingURL=widget-toolbar.d.ts.map