Skip to main content

Usage

Return Value

Options

Examples

Conditional Rendering

With Disabled Option

Breakpoint Values

The hook uses the following breakpoint values:

Mobile-First Approach

The boolean flags (xs, sm, md, lg, xl, xxl) follow a mobile-first approach:
  • xs is always true
  • sm is true when viewport width is 640px or greater
  • md is true when viewport width is 768px or greater
  • And so on…
This makes it easy to write mobile-first responsive logic:
Last modified on December 22, 2025