Device Mockup 18 - Phones shuffling positions on a timerPro
Three labeled phones trade places every few seconds with shared layout animation, the front-and-center phone scaling up while the others step back, next to copy and a theme switcher. Use it to show variants of the same screen, such as themes, plans or locales, in a compact space.
About Device Mockup 18
Three labeled phones trade places every few seconds with shared layout animation, the front-and-center phone scaling up while the others step back, next to copy and a theme switcher. Use it to show variants of the same screen, such as themes, plans or locales, in a compact space.
Device Mockup 18 is a pro device mockup block for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 116 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- mockup
- phones
- shuffle
- layout animation
- themes
- loop
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/device-mockup-18Dependencies installed automatically: motion.
Uses: button, device-frame, reveal, use-interval, use-reduced-motion, utils.
Usage
import DeviceMockup18 from "@/components/blocks/device-mockup-18"
export default function Page() {
return <DeviceMockup18 />
}