Skip to content
v0.9.1
Components

Alert & banner

Messages inside the page (alerts) and across the top of it (banners). A button with data-momo-dismiss removes them.

Alert

An .alert-icon tile, an .alert-body with an .alert-title and a line of text, and an optional dismiss button. Use role="alert" only for urgent messages that appear while someone works; use role="status" for calm ones.

New version available

Momo 0.1 adds kanban and calendar.

<div class="alert" role="status">
  <span class="alert-icon"><i class="mi mi-info"></i></span>
  <div class="alert-body"><b class="alert-title">New version available</b><p>Momo 0.1 adds kanban and calendar.</p></div>
  <button class="btn btn-icon btn-sm btn-ghost" type="button" data-momo-dismiss aria-label="Dismiss"><i class="mi mi-x"></i></button>
</div>

Colors

.alert-<color> fills it; .alert-<color>-soft is a quiet tint with a colored icon tile.

Export complete

Q2_Sales_Report.csv is ready to download.

Tip: press Ctrl + K to search anything.
<div class="alert alert-yellow" role="alert">
  <span class="alert-icon"><i class="mi mi-triangle-alert"></i></span>
  <div class="alert-body"><b class="alert-title">System alert</b><p>Maintenance tonight. Expect downtime around 2 AM.</p>
    <div class="alert-actions"><a class="btn btn-sm" href="#">View details</a></div></div>
  <button class="btn btn-icon btn-sm btn-ghost" type="button" data-momo-dismiss aria-label="Dismiss"><i class="mi mi-x"></i></button>
</div>
<div class="alert alert-green-soft" role="status">
  <span class="alert-icon"><i class="mi mi-circle-check"></i></span>
  <div class="alert-body"><b class="alert-title">Export complete</b><p>Q2_Sales_Report.csv is ready to download.</p></div>
</div>
<div class="alert alert-red-soft" role="alert">
  <span class="alert-icon"><i class="mi mi-circle-alert"></i></span>
  <div class="alert-body"><b class="alert-title">Payment failed</b><p>The card ending in 4340 was declined. Try another card.</p>
    <div class="alert-actions"><button class="btn btn-sm btn-red" type="button">Update card</button><button class="btn btn-sm btn-ghost" type="button">Later</button></div></div>
</div>
<div class="alert alert-violet-soft alert-sm" role="status">
  <span class="alert-icon"><i class="mi mi-sparkles"></i></span>
  <div class="alert-body">Tip: press <kbd>Ctrl</kbd> + <kbd>K</kbd> to search anything.</div>
</div>

.alert-sm is a one-line version.

Banner

.banner is a full-width strip, usually at the very top of the app. Black by default; .banner-brand or .banner-<color> to color it.

<div class="banner" role="status">You're on the free plan. <a href="#">Upgrade for 50% off</a>
  <button class="btn btn-icon btn-sm btn-ghost" type="button" data-momo-dismiss aria-label="Dismiss"><i class="mi mi-x"></i></button></div>
<p></p>
<div class="banner banner-yellow" role="status"><i class="mi mi-wrench"></i> Scheduled maintenance Saturday 2 AM to 4 AM.</div>

Dismissing

A button with data-momo-dismiss fades out and removes the closest .alert or .banner (or the element in data-momo-dismiss="#id"). It fires momo:dismiss first, so you can remember the choice.

document.addEventListener('momo:dismiss', (e) => localStorage.setItem('hide-' + e.target.id, '1'));

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