Component packs › Postmark › Envelope Submit
Send the letter and it folds in thirds, drops into an envelope that rises to meet it, the flap closes, the stamp is cancelled and it flies off.
Envelope Submit is a form from Postmark, a component pack with 6 mail controls: Send buttons and forms made of paper, wax, stamps and ink. Price: $2 for the whole pack.
Built with: 3D paper folds with shading, envelope layers and flap, real form with validation.
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 |
|---|---|---|---|
title | string | "Write to us" | Heading on the letter. Default "Write to us". |
button | string | "Send" | Send button label. Default "Send". |
to | string[] | Address on the envelope, in handwriting. | |
town | string | "Lisbon" | Town printed in the postmark. Default "Lisbon". |
onSend | (data: EnvelopeSubmitData) => void | Promise<unknown> | Called with the form data; return a promise to hold the envelope until it resolves. Reject to show an error. | |
dark | boolean | it follows the page | Force dark (true) or light (false); by default it follows the page. |
autoplay | number | false | Showcase mode: writes a demo letter and sends it every N ms. |
send(): Promise<boolean>: Validate and send, as the button does.reset(): void: Back to an empty letter.destroy(): voidimport EnvelopeSubmit from './EnvelopeSubmit';
<EnvelopeSubmit />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.