Origami Pricing, animated React component
A pricing card folded like a paper map. Tap it and it opens in two folds: the features panel swings out, then the quote and call-to-action drop down, with creases darkening mid-turn.
- Pro
- Pricing Sections
- 3D
- Spring
Play with it
Move the controls and watch it change. Copy code gives you a snippet with only the props you changed.
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| planName | string | "Nexus Pro" | Plan name on the cover; its first letter becomes the logo tile. |
| price | string | "$9" | Price on the cover, including the currency symbol. |
| period | string | "/mo" | Small unit after the price. |
| features | string[] | ["All components", "All templates", "Source + Figma", "Requests first"] | Lines in the features panel. |
| quote | string | "Paid for itself in the first week." | Customer quote on the lower-left panel. |
| author | string | "Maya, Loop" | Who said it. |
| ctaLabel | string | "Start free trial" | Label of the button on the last panel. |
| note | string | "14 days · cancel anytime" | Small line under the button. |
| onCtaClick | () => void | — | Called when the button is pressed. The card never navigates or takes payment on its own. |
| caption | string | "Two folds: out, then down." | Line under the card; pass an empty string to hide it. |
| autoplay | boolean | false | Folds and unfolds by itself until someone taps the card. Skipped when the visitor prefers reduced motion. |