Vizel API / react/src / useVizelThemeSafe
Function: useVizelThemeSafe()
ts
function useVizelThemeSafe(): UseVizelThemeResult | null;Defined in: packages/react/src/hooks/useVizelTheme.ts:82
Hook to access the theme safely. Returns null outside a VizelThemeProvider.
Symmetric with useVizelTheme — the only difference is whether the absence of a provider is fatal.
Returns
UseVizelThemeResult | null