Ayushmaan Singh

Theme Toggle

Buttons 2.6K

About

Cool Toggles with framer motion animations that you can copy-paste into your apps.

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

Code

How Theme Toggle is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { ThemeToggle } from "@/components/ui/theme-toggle"

function DefaultToggle() {
  return (
    <div className="space-y-2 text-center">
      <div className="flex justify-center">
        <ThemeToggle />
      </div>
    </div>
  )
}

export { DefaultToggle }

Dependencies

More by Ayushmaan Singh

View all
  • Tubelight Navbar

    Tubelight Navbar

    3.8K
  • Feature Section

    Feature Section

    1.8K
  • Vintage Keyboard

    Vintage Keyboard

    583
  • Thumbnail Carousel

    Thumbnail Carousel

    444
  • Image Fan Carousel

    Image Fan Carousel

    336
  • Typewriter Testimonial

    Typewriter Testimonial

    318
  • Testimonials

    Testimonials

    261
  • Image Stack Carousel

    Image Stack Carousel

    234

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