UNPKG

react-day-and-night-toggle

Version:

🌞Day & Night🌛 (light/dark) theme switch with pretty cool animation for React.

14 lines (13 loc) • 471 B
import React from 'react'; interface Props { checked: boolean; size?: number; startInactive?: boolean; animationInactive?: boolean; shadows?: boolean; className?: string | undefined; onChange: () => void; [props: string]: unknown; } export declare const DayAndNightToggle: React.MemoExoticComponent<({ onChange, checked, size, startInactive, animationInactive, shadows, className, ...labelProps }: Props) => React.JSX.Element>; export {};