Component packs › Helium › Pop Validation

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.

Pop Validation props

PropTypeDefaultDescription
labelstring
placeholderstring
submitTextstring"Join"Button text. Default "Join".
validate(value: string) => string | nulla plain email patternYour check. Default: a plain email pattern. Return an error message, or null when fine.
darkboolean
onSubmit(value: string) => void
autoplaynumber | falseShowcase mode: types a wrong address, then a right one, every N ms while visible.

Methods on the ref

Use it in React

import PopValidation from './PopValidation';

<PopValidation />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Helium

Good for: File upload.