About
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds One Toogle to your project and fits it to your theme.
Code
How One Toogle is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { Star } from "lucide-react";
import { useState } from "react";
import { Toggle } from "@/components/ui/one-toogle";
export function TogglePreview() {
const [favorite, setFavorite] = useState(false);
return (
<div className="flex items-center justify-center px-2 py-4">
<Toggle
aria-label="Toggle favorite"
onPressedChange={setFavorite}
pressed={favorite}
>
<Star className="size-5" fill={favorite ? "currentColor" : "none"} />
Favorite
</Toggle>
</div>
);
}
export default TogglePreview














