- useConstraint(width): {
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.
isDesktop: boolean
isPhone: boolean
isTablet: boolean
Returns an object with boolean properties indicating whether the given width matches the responsive breakpoints.