Component packs › Postmark › Envelope Submit

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.

Envelope Submit props

PropTypeDefaultDescription
titlestring"Write to us"Heading on the letter. Default "Write to us".
buttonstring"Send"Send button label. Default "Send".
tostring[]Address on the envelope, in handwriting.
townstring"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.
darkbooleanit follows the pageForce dark (true) or light (false); by default it follows the page.
autoplaynumber | falseShowcase mode: writes a demo letter and sends it every N ms.

Methods on the ref

Use it in React

import EnvelopeSubmit from './EnvelopeSubmit';

<EnvelopeSubmit />

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

More in Postmark

Good for: Skeuomorphic UI.