Phones
What Momo does by itself on a small touch screen: pop-ups become bottom sheets, wide layouts stack, buttons grow to finger size, and the gestures people expect work. Same markup, nothing to add.
Pop-ups become bottom sheets
On a phone, things that open next to a button come up from the bottom instead: easier to reach with a thumb, and never cut off at the edge of the screen. Open this page on a phone and try these. On a computer they stay normal pop-ups.
<div class="cluster items-end gap-4" id="ph-demo">
<div>
<button class="btn" type="button" data-momo-menu="ph-menu" id="ph-menu-btn">Order #10421 <i class="mi mi-chevron-down"></i></button>
<div class="menu" id="ph-menu">
<button class="menu-item"><i class="mi mi-pencil"></i> Edit</button>
<button class="menu-item"><i class="mi mi-copy"></i> Duplicate</button>
<button class="menu-item"><i class="mi mi-send"></i> Send invoice</button>
<button class="menu-item"><i class="mi mi-printer"></i> Print packing slip</button>
<hr class="menu-divider">
<button class="menu-item menu-item-danger"><i class="mi mi-trash-2"></i> Delete</button>
</div>
</div>
<div class="form-field w-48 mb-0">
<label class="form-label" for="ph-status">Order status</label>
<select class="form-select" id="ph-status" name="status"><option>Paid</option><option>Unpaid</option><option>Refunded</option><option>Shipped</option><option>Delivered</option></select>
</div>
<div class="form-field w-48 mb-0">
<label class="form-label" for="ph-date">Ship date</label>
<div class="datepicker" data-momo-datepicker><input type="date" id="ph-date" name="ship" value="2026-12-04"></div>
</div>
<button class="btn btn-red" type="button" id="ph-confirm" data-momo-confirm="The order and its invoice will be gone for good." data-confirm-title="Delete order #10421?" data-confirm-ok="Delete order">Delete order</button>
</div><!-- nothing special: on a phone these open as sheets -->
<button class="btn" data-momo-menu="order-menu">Order #10421</button>
<div class="menu" id="order-menu">…</div>
<select class="form-select">…</select>
<div class="datepicker" data-momo-datepicker><input type="date"></div>
<button class="btn btn-red" data-momo-confirm="…">Delete order</button>- A sheet has a small handle on top. Drag it down, tap outside, or press Esc to close it.
- Items get taller (48px), so they are easy to hit with a finger.
- The dropdown list says the field's name to screen readers (from its label).
- Menus and dropdown lists become sheets on narrow touch screens (under 576px). Calendars and confirm questions do it on any narrow window, since they need the room.
Keep a pop-up
data-momo-sheet="false" on the button, the field, any parent, or <html> for the whole site keeps the normal pop-up on phones.
<div class="cluster items-end gap-4" data-momo-sheet="false">
<button class="btn" type="button" data-momo-menu="ph-menu2" id="ph-menu2-btn">Always a pop-up <i class="mi mi-chevron-down"></i></button>
<div class="menu" id="ph-menu2">
<button class="menu-item"><i class="mi mi-pencil"></i> Edit</button>
<button class="menu-item"><i class="mi mi-copy"></i> Duplicate</button>
</div>
</div><div data-momo-sheet="false">…buttons and fields…</div>
<html data-momo-sheet="false"> <!-- the whole site -->Layouts that fold by themselves
| On a phone | What happens |
|---|---|
| App shell, Navbar | The sidebar and the links move into a drawer behind a menu button |
| Split view, Inbox | One pane at a time: the list first, then the details slide in with a Back button |
Table with .table-stack | Each row becomes a small card with its labels |
| Tabs, Nav overflow | The row scrolls sideways, or the last items move into "More" (a sheet) |
Description list, Media object with .media-stack | Labels move above their values; the picture goes on top |
| Card grid, Features, Pricing | As many columns as fit: one on a phone |
| Date range, Tour, Toasts | One month in place of two; the tour card docks at the bottom; toasts span the width |
Several of these follow their own width, not the screen's, so they also fold inside a narrow column on a big screen.
Fingers
- Bigger targets. On touch screens buttons, checkboxes and small controls grow to a comfortable size without changing how they look on a computer.
- No zoom when typing. Fields use 16px text, so an iPhone does not zoom in when you tap one.
- No hover needed. What a mouse reveals on hover (the file menu, the "mark as read" buttons) is always visible on touch screens.
- Gestures. Swipe a row for its actions, pull down to refresh, swipe a toast away, drag a sheet down to close it.
- The notch and the home bar. The tab bar, the cookie banner and bottom sheets keep clear of them.
Three things for your page
- Keep this line in the
<head>. Without it a phone shows the computer layout, shrunk.<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">maximum-scale=1, user-scalable=nostops the page from zooming on a phone: no jump when a field is tapped, no accidental double tap zoom, so it feels like an app. Take those two out if your readers should be able to pinch to enlarge the page (long articles, small print). - Give every field a
<label>and the righttype(email,tel,number,date): the phone then shows the right keyboard, and sheets get their title. - Try your page at 375px wide. Every page of these docs is checked at that width for sideways scrolling.
For a whole app made for the phone (a top bar, a tab bar, a round "+" that opens a sheet), see Mobile app screens.
Reference
| Attribute / class | What it does |
|---|---|
data-momo-sheet="false" | Keeps the normal pop-up on phones (on the button, the field, a parent, or <html>) |
.is-sheet | On a menu, a dropdown list or a calendar while it is a bottom sheet (for your own styling) |
.table-stack, .media-stack | Opt in: a table's rows become cards, a media object's picture goes on top |