UNPKG

@wordpress/widget-dashboard

Version:

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

17 lines • 674 B
export declare const ROW_HEIGHT_PRESETS: { readonly small: 200; readonly medium: 300; readonly large: 400; }; export type RowHeightPreset = keyof typeof ROW_HEIGHT_PRESETS; export declare const DEFAULT_ROW_HEIGHT: 300; /** * Maps a stored pixel height to the nearest preset so legacy freeform * values still resolve to a valid toggle option. * * @param rowHeight Row height in pixels. */ export declare function rowHeightToPreset(rowHeight: number): RowHeightPreset; export declare function presetToRowHeight(preset: RowHeightPreset): number; export declare function snapRowHeight(rowHeight: number): number; //# sourceMappingURL=row-height-presets.d.ts.map