Re-scoped from @lilith/ui-theme to @cocotte/ui-theme. In-set cross-package deps re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
No EOL
449 B
TypeScript
16 lines
No EOL
449 B
TypeScript
import type { ThemeContextValue } from '../types/ThemeInterface';
|
|
/**
|
|
* Hook to access theme context
|
|
*
|
|
* @throws Error if used outside of ThemeProvider
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* function MyComponent() {
|
|
* const { theme, themeName, setTheme } = useTheme();
|
|
* return <button onClick={() => setTheme('luxe')}>Switch Theme</button>;
|
|
* }
|
|
* ```
|
|
*/
|
|
export declare function useTheme(): ThemeContextValue;
|
|
//# sourceMappingURL=useTheme.d.ts.map
|