Overview of the Phoenix and LiveView DeviceMockup Component
The Mishka Chelekom DeviceMockup component is a Phoenix LiveView component that allows developers to create dynamic and customizable device mockups, perfect for showcasing applications, media, or content on various devices such as iPhone, Android, and more. It offers flexibility in layout, color themes, and content slots, providing a professional and engaging display.
This Phoenix LiveView component also supports adding images, responsive content, and custom themes, making it ideal for enhancing both the visual design and usability of media presentations. With its versatility and ease of integration, the DeviceMockup component boosts the visual appeal and interaction of any project.
By using the class prop, you can apply custom classes or Tailwind CSS classes to customize the components design.
Note:
Select any mockup using the
type
prop.
iPhone prop
The DeviceMockup component, when set to the iphone type, allows developers to simulate an iPhone display within their applications. It provides a sleek, responsive design to showcase content or media inside the mockup frame, and supports various color themes and layouts. The iPhone mockup can display images or custom content, making it ideal for app previews, marketing pages, or product demos, ensuring a polished and professional look that aligns with the iPhone's distinct style.
Chelekom Components
<!--The default type is iPhone, so you can skip specifying it.--> <.device_mockup image="/path" />
Android prop
The DeviceMockup component, when set to the android type, allows developers to simulate an Android device display within their applications. It offers a responsive and customizable layout to showcase content, images, or media in an Android-style frame. With support for different color themes and flexible layout options, this mockup is perfect for presenting app previews or product demonstrations. The Android mockup ensures a modern and professional look, tailored to reflect the versatility of Android devices.
Chelekom Components
<.device_mockup image="/path" type="android" />
Watch prop
The DeviceMockup component, when set to the watch type, allows developers to simulate a smartwatch display within their applications. This mockup is perfect for showcasing content or media specifically designed for smaller screens, such as apps or features tailored to smartwatches. With its circular frame and responsive layout, the watch mockup supports customizable color themes and the ability to include images or dynamic content, providing an engaging and sleek presentation for smartwatch app previews or promotional materials.
iPad prop
The DeviceMockup component, when set to the ipad type, allows developers to simulate an iPad display within their applications. This mockup provides a larger screen frame, ideal for showcasing content such as app interfaces, media, or detailed product previews. With support for customizable color themes, images, and flexible content slots, the iPad mockup is perfect for demonstrating responsive designs or creating interactive presentations. The mockup ensures a visually appealing and professional display, tailored to reflect the sleek and modern look of an iPad.
Chelekom Components
<.device_mockup image="/path" type="ipad" />
Laptop prop
The Mishka Phoenix DeviceMockup component, when set to the laptop type, allows developers to simulate a laptop display within their applications. This mockup provides a wide screen layout, making it ideal for showcasing web apps, dashboards, or detailed product previews that benefit from a larger display area. With customizable color themes, image support, and flexible content slots, the laptop mockup is perfect for demonstrating responsive designs, offering a polished and professional look that mirrors the experience of using a real laptop.
Chelekom Components
<.device_mockup image="/path" type="laptop" />
iMac prop
The DeviceMockup component, when set to the imac type, allows developers to simulate an iMac display within their applications. This mockup offers a large, high-resolution screen frame, ideal for showcasing intricate designs, web apps, or detailed product demos that require more screen real estate. With customizable color themes, support for images, and flexible content slots, the iMac mockup provides a sleek, professional presentation that mirrors the premium experience of an actual iMac, making it perfect for high-end app previews or multimedia displays.
Chelekom Components
<.device_mockup image="/path" type="imac" />
Color prop
The DeviceMockup component offers a variety of color themes to help match your design needs. You can choose from classic options like
natural
, and
silver
or opt for more vibrant themes such as
primary
,
secondary
, and
success
. For alert-style mockups, you can use
warning
,
danger
, or
info
. Additionally, unique options like
misc
and
dawn
are available to add a more customized touch.