Skip to content

usePreferredContrast ​

Category
Browser

Hook that returns the contrast preference

typescript
import { usePreferredContrast } from '@siberiacancode/reactuse';

Usage ​

typescript
const contrast = usePreferredContrast();

Demo ​

Api ​

Contributors ​

Source • Demo