Skip to content

Vizel API / vue/src / useVizelThemeSafe

Function: useVizelThemeSafe()

ts
function useVizelThemeSafe(): UseVizelThemeResult | null;

Defined in: packages/vue/src/composables/useVizelTheme.ts:77

Composable to access the theme safely (returns null outside a provider).

Symmetric with useVizelTheme — the only difference is whether the absence of a VizelThemeProvider is fatal.

Returns

UseVizelThemeResult | null

Released under the MIT License.