Open
Description
ThemePanel
component is great, but I think it can be improved by allowing the user to control more of its behavior:
- Allow passing
open
andonOpenChange
toThemePanel
to control it's state - Allow customizing hotkeys for "show/hide" and "switch dark mode" actions. Also, allow passing
null
to disable a hotkey.
Here are a couple of great custom hotkey hooks for inspiration:
https://github.com/JohannesKlauss/react-hotkeys-hook
https://github.com/arthurtyukayev/use-keyboard-shortcut
https://github.com/greena13/react-hotkeys