Formula Won Labs

Form blocks

Payment forms, waitlist captures, OTP verification, contact fields.

10 blocks
Spotlight-hover magic card
Spotlight-hover magic card

Tracks the cursor and paints a soft radial spotlight plus a highlighted border on hover, wraps around any shadcn/ui Card content. Needs next-themes for the dark/light gradient color swap, strip that if the project has no theme provider.

Form with Validation
Form with Validation

Wires react-hook-form and zod validation into the Input, Select, and Textarea primitives with accessible error messages tied to each field. Skip this and use plain Field and Label if the form has no validation rules to enforce.

Simple Login Form
Simple Login Form

Single-card login form with email and password only. Good default for internal tools where there is no social auth to wire up.

Two-Column Login with Image
Two-Column Login with Image

Two-column login with a full-height image on desktop that collapses to a single column on mobile. Swap the placeholder image and company name, the form itself is a separate login-form component pulled from the same source URL.

Email-Only Login with Social
Email-Only Login with Social

Centered login card built around one email field plus social login buttons and a legal footer. Use it when the client wants one-click sign-in via Google or Apple instead of a password.

Signup Card Form
Signup Card Form

Card-based signup form with name, email, password, and confirm password fields. Swap the field description copy for the client's own password rules and privacy language.

Signup with Social Buttons
Signup with Social Buttons

Compact signup form built around one email field with Apple and Google buttons below it. Use for low-friction signups where password creation happens later, after email verification.

Floating checkout form with plan toggle
Floating checkout form with plan toggle

Self-contained checkout card with a monthly/annual pill toggle that updates the displayed price, and a card/bank payment method tab switch. Static mockup only, wire the buttons to a real payment processor before shipping to a client.

Usage-based rate card with live total
Usage-based rate card with live total

Interactive rate card where dragging each usage slider recalculates the line cost and the monthly total live, mirrors how Stripe visualizes usage-based pricing. Best on a usage-billing or API-product pricing page, overkill for a flat-fee service business.

SMS one-time-code confirmation card
SMS one-time-code confirmation card

Six-box one-time-code input that auto-advances focus as digits are typed and steps back on backspace. Use for a real 3D Secure or SMS step, not as a fake trust signal, and connect it to an actual verification flow before shipping.

Want your site’s form blocks to look this good?

We build full sites with blocks like these.