UNPKG

@wordpress/widget-dashboard

Version:

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

27 lines • 822 B
import type { DashboardWidget } from '../../types'; export interface WidgetLayoutControlsProps { /** * The instance these controls manage within the layout. */ widget: DashboardWidget<unknown>; /** * Whether the policy allows removing the instance. * * @default true */ canRemove?: boolean; /** * Whether the policy allows resizing the instance. * * @default true */ canResize?: boolean; } /** * Customize-mode controls: width menu and removal, each following the * policy's answer for its operation. * * @param {WidgetLayoutControlsProps} props Component props. */ export declare function WidgetLayoutControls({ widget, canRemove, canResize, }: WidgetLayoutControlsProps): React.ReactNode; //# sourceMappingURL=widget-layout-controls.d.ts.map