Skip to main content
Version: 3.0.0-beta

useModeController

Hook to retrieve the current mode (light | dark), and setMode or toggle functions to change it.

Consider that in order to use this hook you need to have a parent FireCMS component in the tree.

Props:

{
mode: "light" | "dark";
setMode: (mode: "light" | "dark") => void;
toggleMode: () => void;
}
Sign up to our newsletter to get the latest news and updates. No spam!