Catalogue
Pull-Cord Login, preview

Live. Click, drag or type.

A dark room with a pendant lamp. Pull the lime bead on the cord and the bulb flickers on, the room warms up and a glass login card fades in out of a blur. Pull again and the light goes off and the form clears. Validation, loading and success states included.

Install

  1. One commandnpx shadcn@latest add "https://qodesign.dev/r/pull-cord-login.json?key=YOUR_KEY"Your key comes with the order. Works in any shadcn project, Next.js App Router included.
  2. Or copy it inThe zip has react/src/components, ready for Next.js ("use client" included).
  3. Or ask your AIPaste PROMPT.md into Cursor, Lovable or v0.

What it does

  • Draggable cord with spring physics
  • Bulb flicker + warm light cone
  • Glass login card with validation + shake
Stack
React · Framer Motion · HTML version
Released
Licence
Personal and client projects. Licence

Using Cursor, v0 or Lovable?

Is this lamp login form a real form I can connect to my auth?

Yes. Behind the lamp is a real email and password form with validation messages and a shake on errors. Pass your sign-in call as onSubmit: it gets the email and password, the button spins until your promise resolves and shows the success label, and a rejection resets it and shakes the card. The cord is a switch you can also pull with Space or Enter, onToggle reports the light, and accent recolours the bead, focus ring and button.

How do I add Pull-Cord Login to a Next.js app I build with Cursor?

After checkout your account shows a one-line shadcn install with your licence key; run it in the project, or copy the React file from the zip into your components folder. The file already starts with "use client", so it works in the App Router. If the project does not have framer-motion yet, add it, because the motion runs on it. Then open the agent chat and paste the first prompt from the PROMPT.md that comes with it: Cursor reads the component and fits it to your data, colors and file layout instead of rewriting it.

Does Pull-Cord Login work in v0?

Yes. Install it in your v0 project with the same shadcn command, or paste the component source into the chat. Then paste the first prompt from PROMPT.md so v0 wires it into your page and keeps the animation as it is.

Can I use Pull-Cord Login in a Lovable project?

Yes. Lovable apps are React, TypeScript and Tailwind, the same stack as the React version. Sync the project to GitHub and add the file there, or paste the source into the Lovable chat and ask it to add the component, then paste the first prompt from PROMPT.md.

Can I try it before I add it?

Yes. The preview at the top of this page is the real component running, not a video, so you can click through it first. If you want to start with something free, the free kit at qodesign.dev/free has open-source pieces and copy-paste prompts for Cursor, v0 and Lovable.

Step by step: Cursor, v0, Lovable. Start free: the free kit

Reviews

No reviews yet for this piece.

Only people who got it can review it: the order email has a rating link, one review per order.

Keep browsing

Shy Eyes Login, animated preview

A login mascot that watches you type and covers his eyes for the password.

Gateway Dive, animated preview

Sign in and sign up morph over your live app, then the button dives you into it.

Spotlight Lamp Login, animated preview

A sign-in page in the dark: a desk lamp finds each field and floods the screen when you sign in.

Not ready to buy? Try the free kit