Frost Input, animated React component
A sign-up field that freezes. Focus it and six-fold frost crystals grow across the glass, every key you type drives a crack through the ice from the caret, and sending it shatters the field from the point of impact into falling shards before it freezes back together. It is a real form field with a label, Enter to submit and an onSubmit callback.
- Pro
- Inputs & Controls
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| placeholder | string | "[email protected]" | Placeholder text inside the empty field. |
| headline | string | "Join the cold list." | Headline above the field. |
| done | string | "You’re on the list." | Message shown after the field shatters. |
| onSubmit | (value: string) => void | — | Called with the trimmed value when the form is sent. |
| height | number | 420 | Height of the stage, in px. |
| autoplay | boolean | false | A ghost clicks in, types an address and sends it, in a loop, until a real pointer or key arrives. Pauses off screen and never runs under reduced motion. |
| className | string | — | Extra classes for the stage. |