UNPKG

react18-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.

23 lines (22 loc) 709 B
import { ColorSchemeType } from "../../types"; export interface ThemeSwitcherProps { forcedTheme?: string; forcedColorScheme?: ColorSchemeType; targetSelector?: string; themeTransition?: string; /** provide styles object imported from CSS/SCSS modules, if you are using CSS/SCSS modules. */ styles?: Record<string, string>; /** The nonce value for your Content Security Policy. */ nonce?: string; } /** * * * @example * ```tsx * <ThemeSwitcher /> * ``` * * @source - Source code */ export declare const ThemeSwitcher: ({ forcedTheme, forcedColorScheme, targetSelector, themeTransition, styles, nonce, }: ThemeSwitcherProps) => import("react/jsx-runtime").JSX.Element;