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

    550
  • 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
  • Texture Button

    Texture Button

    95
  • Eclipse Button

    Eclipse Button

    6
  • App Store Button

    App Store Button

    457
  • Button Group

    Button Group

  • Button

    Button

    14
  • Button

    Button

    32
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    9