0Views
0Copies

API Reference
Props for <FoldablePhone />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#011517" | The surface behind the phone; lower its alpha to show your own background. |
| finish | 'original' | 'silver' | 'natural-titanium' | 'black-titanium' | 'blue-titanium' | 'gold' | 'rose-gold' | "original" | The phone’s metal frame, band and buttons |
| pageColor | string | "#f4f7f3" | The app’s page behind its cards. |
| surfaceColor | string | "#ffffff" | The app’s cards and the bell. |
| textColor | string | "#0f1f19" | Names, amounts and headings on the screen. |
| mutedColor | string | "#5d6d66" | Dates, notes and categories. |
| primaryColor | string | "#0b3a2b" | The balance card’s deep end, the tab bar and the avatar initial. |
| accentColor | string | "#0fa968" | The balance card’s light end, money in, and the dot on the bell. |
| highlightColor | string | "#7ef0b4" | The pills, the budget bar, the picked tab and the light on the screen. |
| Prop | Type | Default | Description |
|---|---|---|---|
| screenImage | string | "" | Your own screenshot for the open screen (about 1.42:1), shown instead of the drawn app; empty draws the app. |
| coverImage | string | "" | Your own screenshot for the folded cover screen (about 0.69:1); empty draws the app. |
| time | string | "9:41" | The clock in the status bar. |
| userName | string | "Alex" | Follows the greeting; its first letter fills the avatar. |
| greeting | string | "Good morning" | |
| date | string | "Tuesday, 24 June" | |
| currency | string | "$" | Printed before every amount. |
| balanceLabel | string | "Safe to spend" | |
| daysLeftLabel | string | "{days} days left" | The pill on the card; {days} is the days left. Empty hides it. |
| balanceNote | string | "After bills and savings · about {perDay} a day" | Under the figure; {perDay} is the balance divided by the days left. |
| spentLabel | string | "{amount} spent" | Under the bar; {amount} is the budget minus the balance. |
| budgetLabel | string | "of {amount} budget" | Right of it; {amount} is the budget. |
| upcomingTitle | string | "Coming up" | |
| upcomingNote | string | "Already set aside" | |
| activityTitle | string | "Activity" | |
| activityNote | string | "Every payment, sorted for you" | |
| activityBadge | string | "Today" | The pill beside the title; empty hides it. |
| timeLabels | string[] | ["Just now","12 min ago","1 h ago","3 h ago","5 h ago"] | How long ago each row of the feed happened, from the top. |
| font | FontValue | {"fontFamily":"Inter"} | Everything on the screens. The component doesn’t load the font, so add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| balance | number | 1284.2 | The balance card’s figure at rest, once the last payment in the list has landed. |
| budget | number | 3000 | The period’s budget; the bar shows how much of it is spent. |
| daysLeft | number | 7 | Days left in the period, for the pill and the per-day figure. |
| open | boolean | true | Opens the phone on its hinge; turned off, it folds shut onto its cover screen. |
| openDelay | number | 0.5 | How long the phone rests folded after it appears, before it opens. |
| openDuration | number | 2.6 | How long the cover half takes to swing open; longer is calmer. |
| demo | boolean | true | Once open, payments land in the feed one after another while the balance counts to its new figure. |
| cycle | number | 3.6 | Seconds from one payment to the next. |
| float | boolean | true | The open phone floats gently up and down. |
| blur | number | 1 | Blur on a screen turning away while the phone opens. |
| maxHeight | number | 470 | The largest the open phone grows; it shrinks to fit a smaller component. |
| Prop | Type | Default | Description |
|---|---|---|---|
| upcoming | Array<{ name, note, amount, icon, color }> | [{"name":"Rent","note":"Due in 3 days","amount":1450,"icon":"home","color":"#12b5a5"},{"name":"Japan trip","note":"Auto-saves on Friday","amount":200,"icon":"plane","color":"#2f80d6"}] | Bills and savings already set aside, under the balance card. |
| transactions | Array<{ name, category, amount, icon, color }> | [{"name":"Daily Grind Café","category":"Coffee","amount":-5.4,"icon":"coffee","color":"#d97706"},{"name":"CityRide","category":"Transport","amount":-18.6,"icon":"car","color":"#7c3aed"},{"name":"Green Market","category":"Groceries","amount":-64.25,"icon":"cart","color":"#0fa968"},{"name":"Streamly","category":"Subscriptions","amount":-11.99,"icon":"music","color":"#e11d48"},{"name":"Cinema Nova","category":"Fun","amount":-28,"icon":"film","color":"#2563eb"},{"name":"Trattoria Roma","category":"Dining out","amount":-121.76,"icon":"utensils","color":"#ea580c"},{"name":"Studio Nine","category":"Income","amount":250,"icon":"briefcase","color":"#0fa968"}] | The payments that land in the feed, in order, then again. Keep them adding up to zero so the figure loops back to the balance. |
| tabs | Array<{ label, icon }> | [{"label":"Home","icon":"home"},{"label":"Activity","icon":"activity"},{"label":"Savings","icon":"savings"},{"label":"Profile","icon":"profile"}] | The tab bar across the hinge; the first tab is picked out. |
Motion score
Compositor-only
- Category
- 3D Elements
- Framework
- React
- Published
- Dec 4, 2026
- Dependencies
- Variants
Foldable Phone: a phone mockup for React
A silver foldable phone appears folded on its cover screen, then swings open on its hinge and floats. On its screens, a money app greets the user, a balance card counts and new payments land in the feed one by one.
Use Foldable Phone as the phone mockup in a hero or feature section for a finance, banking or budgeting app. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.
What is Foldable Phone?#
Foldable Phone is a 3D phone mockup for React: a foldable phone that opens on screen and shows a working app. Out of the box it's a mobile app mockup for a money app, and everything on it comes from props, so the greeting, balance, bills and payments are yours to set. Add your own screenshots and it shows any app instead.
How Foldable Phone works#
The phone starts folded, resting on its cover screen. After openDelay (0.5 seconds by default) the cover half swings open on its hinge over openDuration (2.6 seconds), with a light blur on the screen as it turns away. Once open, it floats gently while float is on. Turn open off and it folds shut again.
With demo (Live Payments) on, the payments in transactions drop into the feed one at a time, one every cycle seconds (3.6 by default), and the balance counts up or down to the new figure. Make the payments add up to zero and the balance comes back to where it started, so the loop never drifts. The budget bar, the days-left pill and the per-day figure come from balance, budget and daysLeft.
It renders in WebGL with React Three Fiber and three.js, with a custom shader on the phone. It grows up to maxHeight (470px by default) and shrinks to fit smaller spaces.
Customization options#
In the Customize panel you can change the finish, colors, labels, amounts, bills, payments and tabs, save a look as a variant, then install it. To show your own app instead of the drawn one, upload screenImage (about 1.42:1) and coverImage (about 0.69:1). The font isn't bundled: Inter is the default, so load it, or your own font, in your app. Since it's a WebGL scene with a 3D model, test it on a mid-range phone before you ship.
Use cases#
- Fintech and budgeting apps, where the drawn money app works as it is.
- Banking launches in other currencies, with the Ember variant in euros or Graphite in pounds.
- Hero sections that need a 3D mockup of the app, not a flat screenshot.
- Brand-matched demos, from the indigo Sapphire look to the deep-green Default stage.
FAQs#
It shows an app or website inside a picture of a phone, so people see how it looks in their hand. Foldable Phone is a live one: a 3D model that opens and runs the app, not a flat image.
Yes. Add one screenshot for the open screen and one for the folded cover screen. Leave them empty and the phone draws the money app from its props.
No. Foldable Phone is a Pro component, included in every paid plan. Anything you install stays yours after your plan ends.
React in Next.js, Vite and Astro, styled with Tailwind CSS v4. In a JavaScript project, the CLI converts it to
.jsx as it installs.