Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="midwest-device-frame device-iphone orientation-portrait color-black has-shadow">
<div class="midwest-device-frame-body">
<div class="midwest-device-frame-screen">
<img src="https://picsum.photos/seed/mw-device/600/1300" alt="" class="midwest-device-frame-image" loading="lazy">
<span class="midwest-device-frame-island" aria-hidden="true"></span>
<span class="midwest-device-frame-home-indicator" aria-hidden="true"></span>
</div>
<span class="midwest-device-frame-btn btn-silence" aria-hidden="true"></span>
<span class="midwest-device-frame-btn btn-volume-up" aria-hidden="true"></span>
<span class="midwest-device-frame-btn btn-volume-down" aria-hidden="true"></span>
<span class="midwest-device-frame-btn btn-power" aria-hidden="true"></span>
</div>
</div>
1
2
3
4
5
6
7
8
<%= midwest_device_frame(
device: (params[:device].presence || "iphone").to_sym,
orientation: (params[:orientation].presence || "portrait").to_sym,
color: (params[:color].presence || "black").to_sym,
shadow: params[:shadow] != "false",
responsive: params[:responsive] == "true",
src: params[:src].presence || "https://picsum.photos/seed/mw-device/600/1300"
) %>
Param Description Input

Drop shadow beneath the device

Scale to fill the parent's inline size

Screenshot image URL

No assets to display.
Add a .js or .css file alongside the component to see it here.

Accessibility

Figma embed for Device Frame/playground

Annotate a preview to embed its Figma design here:

@figma "https://figma.com/..."