nextjs-themes
Version:
Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.
13 lines (12 loc) • 712 B
TypeScript
import { ThemeSwitcherProps } from "../theme-switcher";
/**
* The Core component applies classes and transitions without injecting any scripts. Use ThemeSwitcher only once per page. For scoped styles, use this component instead.
*
* Please note that you need to use suitable techniques to increase specificity of CSS selecors when using data- attributes for targetting a container which is within another themed container (including the html if you have used ThemeSwitcher without targetSelector)
*
* @example
* ```tsx
* <Switcher targetSelector="#container1" />
* ```
*/
export declare const Switcher: ({ forcedTheme, forcedColorScheme, targetSelector, themeTransition, }: ThemeSwitcherProps) => null;