@kadconsulting/dry
Version:
KAD Reusable Component Library
10 lines (8 loc) • 332 B
TypeScript
import type { ThemeContextValue } from './types';
/**
Custom hook that allows access to the ThemeContext.
Must be used within a ThemeProvider.
@throws Will throw an error if not used within a ThemeProvider.
@returns The ThemeContextValue from the context.
*/
export declare const useTheme: () => ThemeContextValue | never;