About
A glass-style toggle switch with smooth, tactile animations and light/dark mode support.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Toggle Switch Glass to your project and fits it to your theme.
Code
How Toggle Switch Glass is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ToggleSwitch from "../components/ui/toggle-switch-glass";
function DemoBackground({ children }: { children: React.ReactNode }) {
return (
<div className="flex min-h-screen w-full items-center justify-center bg-[#F3F3F3] dark:bg-[#414141]">
{children}
</div>
);
}
export default function DemoOne() {
return (
<DemoBackground>
<ToggleSwitch size="lg" />
</DemoBackground>
);
}














