ring labs

Theme Switch

Buttons

About

Theme Switch

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

Code

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

Usage.tsx

import * as React from "react"
import { DayNightToggle } from "@/components/ui/theme-switch"

function Demo() {
  const handleToggle = (isChecked) => {
    console.log(`Switched to ${isChecked ? 'day' : 'night'} mode`);
    // Update your app state here
  };

  return <DayNightToggle onChange={handleToggle} defaultChecked={false} />;
}

export {Demo}

More by ring labs

View all
  • Animated Check Box

    Animated Check Box

    546
  • Interactive Animated Arrow Icon

    Interactive Animated Arrow Icon

    31
  • Pastel Hero Header

    Pastel Hero Header

  • Eva Interactive Robot cop

    Eva Interactive Robot cop

  • Glowing Button

    Glowing Button

More in Buttons

View all
  • Button Save

    Button Save

    46
  • Button

    Button

    20
  • Eclipse Button

    Eclipse Button

    5
  • Button

    Button

    32
  • Button

    Button

    6
  • Button

    Button

    14
  • Button Group

    Button Group

    37
  • Split Button

    Split Button

    32