# `MailglassAdmin.Preview.DeviceFrame`
[🔗](https://github.com/szTheory/mailglass/blob/v1.0.0/lib/mailglass_admin/preview/device_frame.ex#L1)

Device-width segmented control: three buttons (375 / 768 / 1024) that
drive the iframe's inline `width` style per 05-UI-SPEC lines 267-280.

The component renders ONLY the toggle buttons — the iframe itself lives
inside `MailglassAdmin.Preview.Tabs` so the chosen width propagates to
the iframe's inline style.

Accessibility: uses `role="group"` with `aria-label="Preview device width"`
and `aria-pressed` on each button per 05-UI-SPEC Accessibility
Interactions lines 509-514.

Boundary classification: submodule auto-classifies into the
`MailglassAdmin` root boundary.

# `device_frame`
*since 0.1.0* 

Renders the 3-button device-width segmented control.

## Attributes

* `device_width` (`:integer`) - Defaults to `768`. Must be one of `375`, `768`, or `1024`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
