pure
    Preparing search index...

    Type Alias DisplayModeOptions<T>

    Options for display mode detection

    See initDisplayMode

    type DisplayModeOptions<T extends string> = {
        detect: (width: number, height: number, isMobile: boolean) => T;
        initial?: T;
    }

    Type Parameters

    • T extends string
    Index

    Properties

    Properties

    detect: (width: number, height: number, isMobile: boolean) => T

    Function to determine the display mode based on viewport width and height, and if the device is mobile

    initial?: T

    Set the initial value, if the platform doesn't support detecting the display mode. detect() will be used instead if supported