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! ⚡

14 lines • 493 B
/** * Subscribes to a CSS media query and returns whether it currently matches. * SSR-safe — returns `false` on the server until hydration. * * @param query - A valid CSS media query string (e.g. `"(min-width: 768px)"`). * @returns `true` when the media query matches, `false` otherwise. * * @example * ```tsx * const isWide = useMediaQuery("(min-width: 1024px)"); * ``` */ export declare function useMediaQuery(query: string): boolean; //# sourceMappingURL=useMediaQuery.d.ts.map