UNPKG

@wordpress/widget-dashboard

Version:

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

38 lines • 1.23 kB
import type { ReactNode } from 'react'; import type { WidgetType } from '@wordpress/widget-primitives'; export interface WidgetHeaderProps { /** * Widget type, source of the icon, title, and help note shown as * identity. */ widgetType?: WidgetType; /** * Id linking the title to the tile's labelled region. */ titleId?: string; /** * Render the icon + title cluster on the leading edge. */ showIdentity?: boolean; /** * Float over the tile instead of sitting in the card flow. */ overlay?: boolean; /** * Inert the identity while customizing, so it does not capture interaction. */ editMode?: boolean; /** * Toolbar placed on the trailing edge. */ children?: ReactNode; } /** * Tile header row: identity (icon + title) and a toolbar on one line. Rendered * in the card flow, or as an `overlay` in the grid slot for full-bleed widgets * that have no in-card header. * * @param {WidgetHeaderProps} props Component props. */ export declare function WidgetHeader({ widgetType, titleId, showIdentity, overlay, editMode, children, }: WidgetHeaderProps): React.ReactNode; //# sourceMappingURL=widget-header.d.ts.map