UNPKG

@mayank1513/nthul

Version:

Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.

17 lines (16 loc) 565 B
import type { HTMLProps } from "react"; interface ForceThemeProps extends HTMLProps<HTMLElement> { /** @defaultValue 'div' */ tag?: keyof JSX.IntrinsicElements; children?: React.ReactNode; theme?: string; colorScheme?: "dark" | "light"; /** provide styles object if you are using CSS/SCSS modules. */ styles?: Record<string, string>; } /** * # ForceTheme * */ export declare const ForceTheme: ({ children, tag, theme, colorScheme, styles, className, ...props }: ForceThemeProps) => import("react/jsx-runtime").JSX.Element; export {};