lumesec

Toggle

Component

About

A labeled switch control with a hint line whose thumb stretches as it travels and sparks a few pixels when turned on.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Toggle to your project and fits it to your theme.

Code

How Toggle is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import UiToggle from "@/components/ui/ui-toggle";

export default function UiToggleDemo() {
  return (
    <div className="flex w-full max-w-sm items-center justify-center p-10">
      <UiToggle defaultChecked hint="Think longer before answering">
        Extended thinking
      </UiToggle>
    </div>
  );
}

More by lumesec

View all
  • Geo Traceroute

    Geo Traceroute

    89
  • Effort Slider

    Effort Slider

    32
  • Date Picker

    Date Picker

    28
  • Connection Globe

    Connection Globe

    25
  • Region Picker

    Region Picker

    23
  • Rotary Dial

    Rotary Dial

    22
  • Pixel Toaster

    Pixel Toaster

    14
  • Pixel Select

    Pixel Select

    12