Component packs › Postmark › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
count | number | 0 | Letters already on the mat. Default 0. |
noun | [string, string] | "letter" / "letters" | Word after the number. Default "letter" / "letters". |
maxPile | number | 9 | Most letters drawn on the mat (the count keeps going). Default 9. |
onChange | (count: number) => void | ||
onCollect | () => void | ||
dark | boolean | ||
autoplay | number | false | Showcase mode: a letter arrives every N ms; collects after five. |
readonly count: numberadd(n?: number): void: Deliver n letters, one after another.setCount(n: number): voidcollect(): void: Pick up the pile.destroy(): voidimport LetterSlot from './LetterSlot';
<LetterSlot />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.