piral-core
Version:
The core library for creating a Piral instance.
18 lines (16 loc) • 559 B
TypeScript
/**
* The mapping of breakpoints to layout type index.
* Choose up to three breakpoints.
* In case of no breakpoint a default layout will be chosen.
@example
`['(min-width: 991px)', '(min-width: 481px)', '(max-width: 480px)']` for desktop, tablet, mobile.
*/
export type LayoutBreakpoints = [string?, string?, string?];
/**
* The different known layout types.
*/
export type LayoutType = 'mobile' | 'tablet' | 'desktop';
/**
* The mapping of the layout types to breakpoint index.
*/
export type LayoutTypes = [LayoutType, LayoutType, LayoutType];