Components
A glass-style toggle switch with smooth, tactile animations and light/dark mode support.
Loading preview...
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>
);
}
Loading preview...