useConstraint( width: number,): { isDesktop: boolean; isPhone: boolean; isTablet: boolean } Returns { isDesktop: boolean; isPhone: boolean; isTablet: boolean }
- An object with the following properties:
- isPhone: A boolean indicating whether the width matches the phone breakpoint.
- isTablet: A boolean indicating whether the width matches the tablet breakpoint.
- isDesktop: A boolean indicating whether the width matches the desktop breakpoint.
Returns an object with boolean properties indicating whether the given width matches the responsive breakpoints.