Edwin Vakayil

Theme Toggle

Buttons 114

About

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

"use client";

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

export function ThemeTogglePreview() {
  return (
    <div className="flex flex-col items-center justify-center gap-4">
      <p className="text-center text-muted-foreground text-sm">
        Click the toggle to switch between light and dark mode.
      </p>
      <ThemeToggle size="md" />
    </div>
  );
}

export default ThemeTogglePreview

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    788
  • Infinite Ribbon

    Infinite Ribbon

    542
  • Shimmer Text

    Shimmer Text

    414
  • Dia Text

    Dia Text

    348
  • Icon Bar

    Icon Bar

    246
  • FAQ Pro

    FAQ Pro

    228
  • Verified Badge

    Verified Badge

    214
  • New Card

    New Card

    185

More in Buttons

View all
  • Button Group

    Button Group

    2
  • App Store Button

    App Store Button

    457
  • Eclipse Button

    Eclipse Button

    6
  • Texture Button

    Texture Button

    96
  • Button

    Button

    5
  • Button Save

    Button Save

    47
  • Base Button

    Base Button

    3
  • HeroUI Button Group

    HeroUI Button Group