Skip to content
v0.9.1
Utilities

Interactions

How things respond to the pointer and to touch: cursors, whether text can be selected, whether clicks pass through, how touch gestures behave.

Examples

cursor-pointer
cursor-not-allowed
select-none (try to select me)
select-all: click once to pick all of me
<div class="box p-4 cursor-pointer">cursor-pointer</div>
<div class="box p-4 cursor-not-allowed opacity-50">cursor-not-allowed</div>
<div class="box p-4 select-none">select-none (try to select me)</div>
<div class="box p-4 select-all">select-all: click once to pick all of me</div>

Clicks that pass through

pointer-events-none lets clicks go to whatever is underneath, for decorative layers over a picture or a fade at the edge of a list.

All classes

ClassCSS
pointer-events-nonepointer-events: none;
pointer-events-autopointer-events: auto;
select-noneuser-select: none; -webkit-user-select: none;
select-alluser-select: all; -webkit-user-select: all;
select-autouser-select: auto; -webkit-user-select: auto;
cursor-autocursor: auto;
cursor-defaultcursor: default;
cursor-pointercursor: pointer;
cursor-textcursor: text;
cursor-movecursor: move;
cursor-grabcursor: grab;
cursor-grabbingcursor: grabbing;
cursor-not-allowedcursor: not-allowed;
cursor-waitcursor: wait;
cursor-helpcursor: help;
cursor-zoom-incursor: zoom-in;
touch-autotouch-action: auto;
touch-nonetouch-action: none;
touch-manipulationtouch-action: manipulation;
touch-pan-xtouch-action: pan-x;
touch-pan-ytouch-action: pan-y;
resize-noneresize: none;
resize-yresize: vertical;
resize-xresize: horizontal;
resizeresize: both;
scroll-smoothscroll-behavior: smooth;
scroll-autoscroll-behavior: auto;

Good to know

Scroll snap and anchors

snap-x on a scrolling row and snap-start on its children make it stop neatly on each item. scroll-mt-navbar on a heading makes links to it land below a sticky navbar.

ClassCSS
snap-xscroll-snap-type: x var(--u-snap, mandatory);
snap-yscroll-snap-type: y var(--u-snap, mandatory);
snap-proximity--u-snap: proximity;
snap-nonescroll-snap-type: none;
snap-startscroll-snap-align: start;
snap-centerscroll-snap-align: center;
snap-endscroll-snap-align: end;
snap-alwaysscroll-snap-stop: always;
scroll-mt-0scroll-margin-top: 0;
scroll-mt-2scroll-margin-top: 0.5rem;
scroll-mt-4scroll-margin-top: 1rem;
scroll-mt-8scroll-margin-top: 2rem;
scroll-mt-16scroll-margin-top: 4rem;
scroll-mt-20scroll-margin-top: 5rem;
scroll-mt-24scroll-margin-top: 6rem;
scroll-mt-navbarscroll-margin-top: calc(var(--momo-navbar-h, 0px) + 1rem);

Form bits

Color the browser's own checkboxes, radios and range sliders with accent-brand or accent-<color>, and the text cursor with caret-*.

ClassCSS
accent-brandaccent-color: var(--momo-brand);
accent-inkaccent-color: var(--momo-ink);
caret-brandcaret-color: var(--momo-brand);
caret-inkcaret-color: var(--momo-ink);
caret-transparentcaret-color: transparent;
appearance-noneappearance: none; -webkit-appearance: none;

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