Component packs › Helium › Pop Validation
The balloon inflates as you type; a wrong email pops it into shreds of latex beside the error, a right one floats up with a tick.
Pop Validation is a form field from Helium, a component pack with 6 balloon controls: Controls made of balloons: they inflate, float on their strings, carry things away and pop. Price: $2 for the whole pack.
Built with: pop into shreds, inflate while typing, live error.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | ||
placeholder | string | ||
submitText | string | "Join" | Button text. Default "Join". |
validate | (value: string) => string | null | a plain email pattern | Your check. Default: a plain email pattern. Return an error message, or null when fine. |
dark | boolean | ||
onSubmit | (value: string) => void | ||
autoplay | number | false | Showcase mode: types a wrong address, then a right one, every N ms while visible. |
readonly value: stringsetValue(v: string): voidsubmit(): booleandestroy(): voidimport PopValidation from './PopValidation';
<PopValidation />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: File upload.