@mocanvas/mocanvas · constant

PORTRAIT_BREAKPOINT

declare const PORTRAIT_BREAKPOINT: {
    readonly ZERO: 0;
    readonly MOBILE_XXS: 1;
    readonly MOBILE_XS: 2;
    readonly MOBILE_SM: 3;
    readonly MOBILE: 4;
    readonly TABLET_SM: 5;
    readonly TABLET: 6;
    readonly DESKTOP: 7;
}

The breakpoints, smallest first. A component compares against the named constants rather than the raw numbers: breakpoint < PORTRAIT_BREAKPOINT.TABLET_SM.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.