Skip to main content
Version: 2.0.0-alpha

Function: useModeController

useModeController(): ModeController

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

see ModeController

Returns

ModeController

Defined in

lib/src/hooks/useModeController.tsx:23