UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

16 lines (15 loc) • 510 B
"use client"; import { useMediaQuery } from "./useMediaQuery.js"; function useBreakpoint() { const is2xl = useMediaQuery("(min-width: 1536px)"); const isXl = useMediaQuery("(min-width: 1280px)"); const isLg = useMediaQuery("(min-width: 1024px)"); const isMd = useMediaQuery("(min-width: 768px)"); if (is2xl) return "2xl"; if (isXl) return "xl"; if (isLg) return "lg"; if (isMd) return "md"; return "sm"; } export { useBreakpoint }; //# sourceMappingURL=useBreakpoint.js.map