UNPKG

@kadconsulting/dry

Version:
10 lines (8 loc) 332 B
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;