Component packs › Postmark › Letter Slot

Letter Slot

Each new message pushes the brass flap open, slides out of the slot, turns flat as it falls and lands on the doormat while the count rolls up.

Letter Slot is a counter 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: flap and chute in 3D, falling letters onto a pile, rolling count.

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.

Letter Slot props

PropTypeDefaultDescription
countnumber0Letters already on the mat. Default 0.
noun[string, string]"letter" / "letters"Word after the number. Default "letter" / "letters".
maxPilenumber9Most letters drawn on the mat (the count keeps going). Default 9.
onChange(count: number) => void
onCollect() => void
darkboolean
autoplaynumber | falseShowcase mode: a letter arrives every N ms; collects after five.

Methods on the ref

Use it in React

import LetterSlot from './LetterSlot';

<LetterSlot />

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

More in Postmark

Good for: Skeuomorphic UI.