@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
22 lines • 658 B
TypeScript
export interface ActionsMenuItem {
label: string;
onClick: () => void;
disabled?: boolean;
/**
* Shown on hover when the item is disabled (for example, to explain
* why the action is unavailable).
*/
disabledTooltip?: string;
}
interface ActionsMenuProps {
items: ActionsMenuItem[];
}
/**
* Renders the dashboard's overflow menu: a three-dots trigger surfacing
* secondary actions. Returns `null` when there are no items.
*
* @param {ActionsMenuProps} props Component props.
*/
export declare function ActionsMenu({ items }: ActionsMenuProps): React.ReactNode;
export {};
//# sourceMappingURL=actions-menu.d.ts.map