Phone Mockup

A versatile phone carousel component ideal for showcasing app screens, features, and product highlights.

Examples

Basic Phone Mockup

Installation

npx shadcn@latest add "https://www.solaceui.com/r/phone-mockup.json"

Component API

PhoneCarousel

PropTypeDefaultDescription
imagesImageItem[]An array of image objects ({ src: string; alt: string }) to display in the phone mockup.
className?stringOptional CSS classes for additional styling (e.g. "features" to enable custom stacking in feature mode).
featureMode?booleanfalseWhen true, the carousel uses a special layout (like stacked phones) instead of the normal side-by-side transition carousel.
featuresData?{ images: ImageItem[] }[]Optional array of feature data. When featureMode is true, used to determine which phone images to show for stacking layout.
activeFeatureIndex?number0The currently active feature index when in feature mode. Determines which phone is front/center vs. behind.

Inspiration

The Iphone15 is influenced from the IPhone 15 pro