Akshay

animated-theme-toggle

Buttons 511

About

ToggleTheme is an interactive theme switcher for React/Next.js applications that allows users to toggle between light and dark modes. It features a smooth, animated icon transition between sun and moon using Framer Motion, enhancing the visual feedback.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds animated-theme-toggle to your project and fits it to your theme.

Code

How animated-theme-toggle is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import {AnimatedThemeToggle} from '@/components/ui/animated-theme-toggle'

export default function DemoOne() {
  return <>
  <AnimatedThemeToggle/></>;
}

Dependencies

More by Akshay

View all
  • useWindowSize

    useWindowSize

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1