Variants
Postcard Rack — a 3D wire postcard rack before a world map wall, flicked to spin and click into place, then a travel postcard flying up to the eye

API Reference

Props for <PostcardRack />

S

Motion score

Compositor-only

Category
3D Elements
Framework
React
Published
Dec 4, 2026
Dependencies
Variants

Postcard Rack: a 3D postcard rack for React

A wire rack of travel postcards stands on a paved floor in front of a world map wall. Flick it and it spins, then clicks into place while the cards swing. Click a card and it slides out and flies up to you.

Use Postcard Rack to show places, destinations or a collection as cards people want to pick up and browse. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.

What is Postcard Rack?

Postcard Rack is a 3D postcard rack you spin by hand, like the wire stands outside a souvenir shop. It holds 24 cards in pockets, eight sides by three rows, and you can open any card to read it up close. It's built with React Three Fiber and three.js, so every card is a real 3D postcard with depth, light and shadow.

How Postcard Rack works

Drag or flick the rack and it turns, slows down and clicks into place with one side facing you. The cards swing and the rack rocks a little as it stops. detent (58) sets how hard it pulls into place, friction (1.5) how quickly a flick fades, topSpeed (7 rad/s) the fastest it can turn, and rattle (1) how much the cards move. The round arrow buttons turn it one side at a time.

Click a card and it swings round, slides out of its pocket and flies up close. Click again or press Escape to put it back. Turn expandOnClick off and a click only calls onCardClick, so you can open your own page or modal instead. The sign on top reads "Pick a season" by default and has its own onSignClick.

Customization options

Change the cards, sign text, colors, fonts, lighting and spin in the Customize panel, save a look as a variant, then install. Each card has a photo, a name, a line underneath and one of three print styles: lettering on the photo, a paper band, or a Greetings card. If you add fewer than 24 cards, they repeat to fill the pockets. The fonts aren't bundled, so load Gabarito and Nanum Pen Script, or your own, in your app. The rack fills its parent, so give the parent a height.

Use cases

  • Travel and tourism sites that let visitors pick a destination from a postcard spinner rack.
  • Evening or nightlife pages, with the Night variant: the shop after dark under a warm street light.
  • Coastal and holiday brands, with Harbour: a sea-blue wall and an amber sign that asks "Where next?".
  • Playful portfolios and collections, with Loose: a terracotta wall and a slippery spinning rack whose cards rattle harder.

FAQs