Skip to content
v0.9.1
Sections

Contact & newsletter

How to reach you, and a form to write to you, side by side. Plus a newsletter box for the end of a page. The form uses the regular form parts; Momo only adds the contact list and the one-line sign-up form.

Contact

Contact

Say hello

Questions, ideas or a bug: we read everything and answer within a day.

  • ChatWeekdays, 9:00 to 17:00
  • Office12 Example Street, Springfield
<div class="grid lg:grid-cols-2 gap-10">
  <div>
    <div class="section-head">
      <span class="eyebrow">Contact</span>
      <h2>Say hello</h2>
      <p>Questions, ideas or a bug: we read everything and answer within a day.</p>
    </div>
    <ul class="contact-list">
      <li><span class="feature-icon bg-yellow-soft"><i class="mi mi-mail" aria-hidden="true"></i></span><div><b>Email</b><a href="#">hello@example.com</a></div></li>
      <li><span class="feature-icon bg-violet-soft"><i class="mi mi-messages" aria-hidden="true"></i></span><div><b>Chat</b><span>Weekdays, 9:00 to 17:00</span></div></li>
      <li><span class="feature-icon bg-green-soft"><i class="mi mi-map-pin" aria-hidden="true"></i></span><div><b>Office</b><span>12 Example Street, Springfield</span></div></li>
    </ul>
  </div>
  <form class="card card-body" onsubmit="event.preventDefault(); Momo.toast({ title: 'Message sent', color: 'green', icon: 'check' }); this.reset()">
    <div class="grid sm:grid-cols-2 gap-x-4">
      <div class="form-field"><label class="form-label" for="ct-name">Name</label><input class="form-control" id="ct-name" autocomplete="name" required></div>
      <div class="form-field"><label class="form-label" for="ct-email">Email</label><input class="form-control" id="ct-email" type="email" autocomplete="email" required></div>
    </div>
    <div class="form-field">
      <label class="form-label" for="ct-topic">About</label>
      <select class="form-select" id="ct-topic"><option>A question</option><option>An idea</option><option>Something is broken</option></select>
    </div>
    <div class="form-field"><label class="form-label" for="ct-msg">Message</label><textarea class="form-control" id="ct-msg" rows="4" required></textarea></div>
    <button class="btn btn-brand" type="submit">Send message</button>
  </form>
</div>

Newsletter

.signup-form: an email box and a button on one line.

Get the newsletter

One email a month. No spam, ever.

<div class="box p-6 hstack flex-wrap justify-between gap-6">
  <div>
    <h3 class="m-0">Get the newsletter</h3>
    <p class="text-muted m-0">One email a month. No spam, ever.</p>
  </div>
  <form class="signup-form" onsubmit="event.preventDefault(); Momo.toast('Thanks! Check your inbox.')">
    <label class="visually-hidden" for="nl-email">Email</label>
    <input class="form-control" id="nl-email" type="email" placeholder="you@example.com" autocomplete="email" required>
    <button class="btn btn-brand" type="submit">Subscribe</button>
  </form>
</div>

Classes

ClassDoes
.contact-listWays to reach you: an icon tile (.feature-icon), a label (b) and a link or text
.signup-formEmail box and button on one line (they wrap when narrow), at most 448px
.signup-noteSmall print under it

For a sign-up box in a big colored panel near the end of a page, see the jumbotron.

A form needs somewhere to send its messages: a form service or your own server. Momo only draws it.

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