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.

24 lines (23 loc) 632 B
import { HTMLProps } from "react"; export interface ColorSwitchProps extends HTMLProps<HTMLButtonElement> { /** Diameter of the color switch */ size?: number; /** Skip system colorScheme while toggling */ skipSystem?: boolean; targetSelector?: string; } /** * Color switch button to quickly set user preference * * @example * ```ts * <ColorSwitch /> * ``` * * Custom size & skipSystem * * ```ts * <ColorSwitch size={20} skipSystem /> * ``` */ export declare const ColorSwitch: ({ size, skipSystem, targetSelector, className, ...props }: ColorSwitchProps) => import("react/jsx-runtime").JSX.Element;