@wordpress/widget-dashboard
Version:
Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.
26 lines • 942 B
TypeScript
import type { WidgetAction } from '@wordpress/widget-primitives';
type WidgetFooterProps = {
/**
* The promoted actions (`relevance: 'high'` and `'medium'`).
*/
actions: WidgetAction[];
/**
* Inert the footer while customizing.
*/
editMode?: boolean;
};
/**
* Persistent strip under the widget body. `'high'` actions mount as leading
* text links, a declared icon riding as prefix; `'medium'` actions as
* trailing compact affordances, icon-only when they declare an icon. Every
* affordance is a real anchor.
*
* A target the host recognizes as one of its own routes (the `links`
* capability from `useWidgetHost`) mounts the host router's link instead,
* so it navigates client-side.
*
* @param {WidgetFooterProps} props Component props.
*/
export declare function WidgetFooter({ actions, editMode, }: WidgetFooterProps): React.ReactNode;
export {};
//# sourceMappingURL=widget-footer.d.ts.map