Free · No signup · MIT

Prompts for the components AI gets wrong

Ask your AI for an OTP input and you get six broken <input>s. Ours is one precise prompt that encodes the trick — paste it into Cursor, Claude, or Copilot and it builds right the first time, in your tokens, with zero new dependencies.

46 components · 7 categories · every prompt tested on a mid-tier model

otp-input.prompt

Build an "OTP Input" — a labeled 6-digit one-time-code field rendered as six separate digit slots (grouped 3 + 3 around a small dash), for SMS/email verification screens.

Critically, this is ONE real input with six painted slots, never six separate <input> elements — per-slot inputs are the classic broken implementation (focus juggling, backspace behavior, and SMS autofill all fall apart); the single-input architecture gets native paste and iOS/Android code autofill for free.

Behavior: the hidden input has inputMode="numeric", autoComplete="one-time-code", pattern="\d*", and maxLength 6; its onChange strips every non-digit and truncates to 6, so typing, pasting a full code, and OS-level SMS autofill all funnel through one sanitizer. Clicking anywhere on the slot row focuses the hidden input. Backspace naturally deletes the last digit (it is just editing the single input's value). The active slot index is min(value.length, 5).

Enter the 6-digit code we sent to your phone.

Live output — click and type.

Why a prompt beats pasted code

Inherits your theme

Prompts reference semantic tokens — bg-primary, text-muted-foreground — never hex. The component lands already wearing your design system.

Built for Tailwind + shadcn/ui

Every prompt is written for a React + Tailwind CSS + shadcn/ui project — that's where results are most accurate. No package to install, no peer-dependency roulette; your AI writes idiomatic code inside your own codebase.

Encodes the trick

Each prompt names the exact technique AI misses — the single-input OTP, the -50% marquee seam, the filter-sort-paginate order — so a mid-tier model nails it.

Thirty seconds, start to shipped

  1. 1

    Find the component

    Browse live, interactive previews — every demo actually works.

  2. 2

    Copy the prompt

    One block of text. Ten sections. Zero ambiguity.

  3. 3

    Paste into your AI

    Cursor, Claude Code, Copilot — the component arrives built for your codebase.

The hard ones, solved

Not another button library. These are the components that come back broken when you ask for them cold.

Loved by developers

Copied, pasted, shipped

Asked Cursor for an OTP input and got six broken inputs. Pasted the prompt instead — the invisible-input trick, first try.
Maya Chen@mayabuilds · Frontend at Nimbus
The data table prompt encodes the filter → sort → paginate order. My AI finally stopped resetting the page on every keystroke.
Jonas Weber@jonasw · Design engineer
No package, no peer-dependency roulette. The component lands already wearing my tokens, like I wrote it myself.
Rachel Adams@rademsdev · UI lead at Parallel
I stopped copy-pasting JSX. A prompt that explains the trick beats code that fights my theme every single time.
Marcus Reed@marcusship · Indie hacker
Command palette in one paste — grouped commands, keyboard nav, empty state. And that was on a mid-tier model.
Hannah Fischer@hannahf · Product engineer
The marquee seam math alone was worth the visit. My loop finally doesn't jump at the wrap point.
Alex Turner@alexbuilds · Freelance dev
Shipped a multi-step form before lunch. The prompt speaks Tailwind tokens, so dark mode just worked.
Sofia Lindqvist@sofialq · Full-stack at Ferro
Reads like a spec written by someone who's been burned before. Every edge case I'd forget is already in there.
Daniel Brooks@dbrooks · Staff eng at Corte
Phone input with per-country masking, first try. I have never seen Copilot get that right cold.
Kevin Tran@kevtran · React dev at Loop
Our design system stayed intact — bg-primary, not a pasted hex. That's the whole point.
Elena Rossi@elenarossi · Design systems at Halide
The prompts name the exact failure AI makes, then route around it. Feels almost unfair.
Tomás Rivera@tomriv · Frontend lead at Atlas
Date range picker with the hover preview and backwards-click swap. One paste. Unreal.
Nina Petrova@ninap · Founder, Slate
Testimonial MarqueeSections
July 2026
SMTWTFS
Date Range PickerForms & Inputs
ReactTypeScript

Type to filter, Enter to add, Backspace to remove.

Tags ComboboxForms & Inputs
Account
2
Profile
3
Confirm
Multi-step FormForms & Inputs
Glow Border ButtonButtons