Edwin Vakayil

One Toogle

Buttons 39

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

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    769
  • Infinite Ribbon

    Infinite Ribbon

    524
  • Shimmer Text

    Shimmer Text

    402
  • Dia Text

    Dia Text

    345
  • Icon Bar

    Icon Bar

    244
  • FAQ Pro

    FAQ Pro

    224
  • Verified Badge

    Verified Badge

    212
  • New Card

    New Card

    183

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • App Store Button

    App Store Button

    454
  • Notification Button

    Notification Button

    103