react-night-toggle
Version:
A modern dark mode toggle for ReactJs with smooth animations.
16 lines (13 loc) • 414 B
TypeScript
import * as React from 'react';
interface DarkModeSwitchProps {
onChange: (checked: boolean) => void;
checked: boolean;
size?: number | string;
lightIcon?: React.ReactNode;
darkIcon?: React.ReactNode;
sunColor?: string;
moonColor?: string;
followSystem?: boolean;
}
declare const DarkModeSwitch: React.FC<DarkModeSwitchProps>;
export { DarkModeSwitch, type DarkModeSwitchProps };