react-dark-mode-toggle
A super cutesy dark mode toggle button for React. Inspired by overreacted.io.
? Getting Started
Using npm
:
Using yarn
:
✨ Usage
? Props
Prop | Type | Default | Required |
---|---|---|---|
onChange |
func | value => null |
No |
checked |
boolean | false |
No |
size |
number | 80 |
No |
speed |
number | 1.3 |
No |
Note, this is not a dark mode theme implementation; it's just a button! You'll need to mix this with a management solution such as use-dark-mode.