| Prop | Type | Default | Attributes |
|---|---|---|---|
theme | union | No default value— | |
setTheme | callback | No default value— | |
rootTheme | union | No default value— | |
setRootTheme | callback | No default value— | |
colorMode | union | No default value— | |
setColorMode | callback | No default value— | |
invertColorMode | callback | No default value— |
useTheme
useTheme is a hook that reads and changes themes and color modes, such as switching brands or adding a dark-mode toggle.
Import
import { useTheme } from '@vortexlabs/vortex';Other links