UNPKG

react-theme-switch-animation

Version:

React Theme Switch Animation for ReactJS, NextJS App Router

23 lines (22 loc) 698 B
export declare enum ThemeAnimationType { CIRCLE = "circle", BLUR_CIRCLE = "blur-circle" } interface ReactThemeSwitchAnimationHook { ref: React.RefObject<HTMLButtonElement>; toggleSwitchTheme: () => Promise<void>; isDarkMode: boolean; } export interface ReactThemeSwitchAnimationProps { duration?: number; easing?: string; pseudoElement?: string; globalClassName?: string; animationType?: ThemeAnimationType; blurAmount?: number; styleId?: string; isDarkMode?: boolean; onDarkModeChange?: (isDark: boolean) => void; } export declare const useModeAnimation: (props?: ReactThemeSwitchAnimationProps) => ReactThemeSwitchAnimationHook; export {};