@smallstack/svelte-ui
Version:
Tiny library for Svelte 5 and DaisyUI, published as multi entry ESM module and as web components.
31 lines (30 loc) • 776 B
TypeScript
export declare const BREAKPOINTS: {
/** < 640px */
XS: string;
/** 640 - 767px */
SM: string;
/** 768 - 1023px */
MD: string;
/** 1024 - 1279px */
LG: string;
/** > 1280 */
XL: string;
};
/** greater than 640px */
export declare const SM_AND_UP: string[];
/** greater than 768px */
export declare const MD_AND_UP: string[];
/** greater than 1024px */
export declare const LG_AND_UP: string[];
export declare const BREAKPOINT_DIMENSIONS: {
[x: string]: number[];
};
declare class BreakpointService {
windowWidth: number;
windowHeight: number;
constructor();
matches(breakpoints: boolean | string | string[]): boolean;
private handleResize;
}
export declare const breakpointService: BreakpointService;
export {};