use-prefers-color-scheme
πͺ React hook for subscribing to user's color scheme preference. (by anatoliygatt)
react-as-prop
Type-safe `as` prop utility for flexible and semantic UI components of React (by neet)
Our great sponsors
use-prefers-color-scheme | react-as-prop | |
---|---|---|
2 | 2 | |
31 | 7 | |
- | - | |
3.9 | 10.0 | |
9 months ago | over 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
use-prefers-color-scheme
Posts with mentions or reviews of use-prefers-color-scheme.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-20.
-
Iβve built a fully themeable and accessible dark mode toggle component for React. [Details in the comments]
Thank you! I'm not linking to any articles here. dark-mode-toggle is a controlled React component, so you can query the preferred color scheme with a hook like https://github.com/anatoliygatt/use-prefers-color-scheme and set the mode prop to whatever value you like, as long as it is either dark or light π.
-
Iβve built two React hooks that will help you in making your apps more accessible
π Repository: GitHub π» Live Demo: CodeSandbox
react-as-prop
Posts with mentions or reviews of react-as-prop.
We have used some of these posts to build our list of alternatives
and similar projects.
What are some alternatives?
When comparing use-prefers-color-scheme and react-as-prop you can also consider the following projects:
use-color - πΌπΌπΌ The powerful color hook that all designers deserve. β¨ Parse and stringify that just works & π¦Ύ Strict type checking at compile time
astro-paper - A minimal, accessible and SEO-friendly Astro blog theme
react-hook - β© Strongly typed, concurrent mode-safe React hooks
headlessui - Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
use-prefers-reduced-motion - πͺ React hook for subscribing to user's motion preference.
tab-a11y
flowbite-react - Official React components built for Flowbite and Tailwind CSS
use-prefers-color-scheme vs use-color
react-as-prop vs astro-paper
use-prefers-color-scheme vs react-hook
react-as-prop vs headlessui
use-prefers-color-scheme vs use-prefers-reduced-motion
react-as-prop vs use-prefers-reduced-motion
use-prefers-color-scheme vs tab-a11y
react-as-prop vs flowbite-react