UNPKG

@zenithui/utils

Version:

A collection of utility functions and hooks to simplify development in the ZenithUI ecosystem.

24 lines (23 loc) 943 B
export type ThemeAnimationType = "SWIPE" | "CIRCLE" | "CIRCLE-BLUR" | "DIAMOND" | "RIPPLE" | "SHUTTER" | "SPLIT" | "SPIRAL" | "PIXELATE" | "RANDOM_BLOCKS" | "CORNERS" | "WARP" | "GLITCH"; interface ReactThemeSwitchAnimationHook { ref: React.RefObject<HTMLButtonElement | null>; toggleSwitchTheme: () => Promise<void>; isDarkMode: boolean; } export interface ReactThemeSwitchAnimationProps { duration?: number; easing?: string; pseudoElement?: string; globalClassName?: string; animationType?: ThemeAnimationType; blurAmount?: number; styleId?: string; isDarkMode?: boolean; rippleCount?: number; splitDirection?: "horizontal" | "vertical" | "diagonal"; pixelSize?: number; glitchIntensity?: number; onDarkModeChange?: (isDark: boolean) => void; } declare const useThemeMode: (props?: ReactThemeSwitchAnimationProps) => ReactThemeSwitchAnimationHook; export default useThemeMode;