Skip to content
v0.9.1
Foundations

Images & figures

Pictures that never spill out of their box, a framed thumbnail, and a picture with a caption. Inside an article, prose already does all of this.

Responsive and thumbnail

.img-fluid shrinks a picture to fit its box and keeps its shape; .img-thumbnail adds a white frame.

Violet dusk over the hills An orange desert Yellow hills at noon
<img class="img-fluid w-64" src="../examples/img/sample-2.svg" alt="Violet dusk over the hills" width="1200" height="800">
<img class="img-thumbnail w-48" src="../examples/img/sample-6.svg" alt="An orange desert" width="1200" height="800">
<img class="img-thumbnail w-48 rotate-2 shadow-md" src="../examples/img/sample-1.svg" alt="Yellow hills at noon" width="1200" height="800">

Figure

A blue lake between snowy mountains
The lake on a still morning. Photo: the Momo team.
<figure class="figure max-w-sm">
  <img src="../examples/img/sample-5.svg" alt="A blue lake between snowy mountains" width="1200" height="800">
  <figcaption class="figure-caption">The lake on a still morning. Photo: the Momo team.</figcaption>
</figure>

Classes

ClassDoes
.img-fluidAt most as wide as its box, height follows
.img-thumbnailThe same, in a white frame with a line
figure.figureA picture (rounded, with a line) and its caption
.figure-captionThe small gray caption under it

Always write width and height on an <img> (the file's real size): the browser keeps the space free while it loads, so the page doesn't jump. Cropping, shapes and filters are in the utilities (object-cover, aspect-*) and transforms & filters.

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