IDisplayOptions

interface
Display & Responsive

Configuration bag for the useDisplay() plugin — sets the global mobile breakpoint and the named breakpoint thresholds at install time.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

mobileBreakpoint
number | TBreakpoint
Global breakpoint below which `mobile` is true. Defaults to "sm".
thresholds
Partial<TDisplayThresholds>
Override the pixel widths for each named breakpoint (xs, sm, md, lg, xl, xxl).

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Passing custom thresholds to the plugin

typescript