Skip to main content
Version: 3.0.0-beta

Interface: ModeController

Use this controller to change color mode

Properties​

mode​

mode: "light" | "dark"

Defined in​

packages/firecms_core/src/hooks/useModeController.tsx:9


setMode()​

setMode: (mode) => void

Parameters​

• mode: "light" | "dark"

Returns​

void

Defined in​

packages/firecms_core/src/hooks/useModeController.tsx:10


toggleMode()​

toggleMode: () => void

Returns​

void

Defined in​

packages/firecms_core/src/hooks/useModeController.tsx:11

Sign up to our newsletter to get the latest news and updates. No spam!