construct-ui
Version:
A Mithril.js UI library
14 lines (13 loc) • 539 B
TypeScript
import { Breakpoints } from '../../_shared';
declare class ResponsiveManager {
/** Key value of active breakpoints */
activeBreakpoints: Record<keyof typeof Breakpoints, boolean>;
/** Binds breakpoints */
initialize(breakpoints?: Record<keyof typeof Breakpoints, string>): void;
/** Checks if current breakpoint string is active */
is(key: keyof typeof Breakpoints): boolean;
/** Unbinds all breakpoints */
destroy(): void;
}
declare const _default: ResponsiveManager;
export default _default;