Edwin Vakayil

Theme Toggle

Buttons 120

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

    886
  • Infinite Ribbon

    Infinite Ribbon

    602
  • Shimmer Text

    Shimmer Text

    461
  • Dia Text

    Dia Text

    379
  • Icon Bar

    Icon Bar

    266
  • FAQ Pro

    FAQ Pro

    250
  • Verified Badge

    Verified Badge

    235
  • New Card

    New Card

    201

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113