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

19 lines • 685 B
/** * Returns whether the user prefers higher contrast. * * @remarks * Wraps a `prefers-contrast` media query in a semantic accessibility hook so components * can adapt borders, focus states, and surface styling without repeating query strings. * * @returns `true` when `prefers-contrast: more` is active. * * @example * ```tsx * const highContrast = usePrefersContrast(); * ``` * * @see {@link useMediaQuery} — Shared media-query subscription hook. * @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast | MDN prefers-contrast} */ export declare function usePrefersContrast(): boolean; //# sourceMappingURL=usePrefersContrast.d.ts.map