Skip to main content
Version: 2.0.0

Interface: ModeController

Use this controller to change color mode

Properties

mode

mode: "light" | "dark"

Defined in

lib/src/hooks/useModeController.tsx:9


setMode

setMode: (mode: "light" | "dark") => void

Type declaration

▸ (mode): void

Parameters
NameType
mode"light" | "dark"
Returns

void

Defined in

lib/src/hooks/useModeController.tsx:10


toggleMode

toggleMode: () => void

Type declaration

▸ (): void

Returns

void

Defined in

lib/src/hooks/useModeController.tsx:11

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!