Skip to content

[Feature Request] Allow programmatically controlling the ThemePanel component #382

Open
@snelsi

Description

@snelsi

ThemePanel component is great, but I think it can be improved by allowing the user to control more of its behavior:

  1. Allow passing open and onOpenChange to ThemePanel to control it's state
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions