UNPKG

@wordpress/widget-dashboard

Version:

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

30 lines • 1.08 kB
import type { WidgetRuntimeAction } from '@wordpress/widget-primitives'; type WidgetFooterProps = { /** * The instance whose actions these are. */ uuid: string; /** * The promoted actions (`relevance: 'high'` and `'medium'`). */ actions: WidgetRuntimeAction[]; /** * Inert the footer while customizing. */ editMode?: boolean; }; /** * Persistent strip under the widget body. `'high'` actions mount as leading * text affordances, a declared icon riding as prefix; `'medium'` actions as * trailing compact affordances, icon-only when they declare an icon. Every * link is a real anchor; a callback action mounts a button, disabled while * its promise settles. * * A target the host recognizes as one of its own routes mounts the host * router's link through `HostLink`, so it navigates client-side. * * @param {WidgetFooterProps} props Component props. */ export declare function WidgetFooter({ uuid, actions, editMode, }: WidgetFooterProps): React.ReactNode; export {}; //# sourceMappingURL=widget-footer.d.ts.map