Components/useBreakpoint

useBreakpoint

Returns true when the viewport is at or above a Tailwind breakpoint.

Installation

Usage

API Reference

PropTypeDefaultDescription
bp*'sm'|'md'|'lg'|'xl'|'2xl'requiredTailwind breakpoint to check.
returnsbooleanTrue when the viewport is at or above the breakpoint.