Skip to content
v0.9.1
Guides

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>

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 phoneWhat happens
App shell, NavbarThe sidebar and the links move into a drawer behind a menu button
Split view, InboxOne pane at a time: the list first, then the details slide in with a Back button
Table with .table-stackEach row becomes a small card with its labels
Tabs, Nav overflowThe row scrolls sideways, or the last items move into "More" (a sheet)
Description list, Media object with .media-stackLabels move above their values; the picture goes on top
Card grid, Features, PricingAs many columns as fit: one on a phone
Date range, Tour, ToastsOne 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

Three things for your page

  1. 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=no stops 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).
  2. Give every field a <label> and the right type (email, tel, number, date): the phone then shows the right keyboard, and sheets get their title.
  3. 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 / classWhat it does
data-momo-sheet="false"Keeps the normal pop-up on phones (on the button, the field, a parent, or <html>)
.is-sheetOn a menu, a dropdown list or a calendar while it is a bottom sheet (for your own styling)
.table-stack, .media-stackOpt in: a table's rows become cards, a media object's picture goes on top

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close