Skip to content
v0.9.1
Components

Calendar

A month with colored events, a small date picker, a week strip and an agenda list. momo.js draws the month; you list the events.

Month

Put data-momo-calendar on a .calendar. Set the month with data-month (default: this month). List events in a hidden .calendar-events list with data-date, and optional data-color and data-href. A day shows up to 3, then "+2 more".

<div class="calendar" data-momo-calendar data-month="2026-09" data-value="2026-09-03" data-today="2026-09-10">
  <ul class="calendar-events" hidden>
    <li data-date="2026-09-03" data-color="violet">Team meeting</li>
    <li data-date="2026-09-03" data-color="yellow">Design review</li>
    <li data-date="2026-09-08" data-color="green">Interview with applicant</li>
    <li data-date="2026-09-10" data-color="pink">Weekly meeting</li>
    <li data-date="2026-09-15" data-color="cyan">Sprint 42 starts</li>
    <li data-date="2026-09-17">Photoshoot</li>
    <li data-date="2026-09-17" data-color="orange">Client call</li>
    <li data-date="2026-09-17" data-color="green">Budget sync</li>
    <li data-date="2026-09-17" data-color="violet">Retro</li>
    <li data-date="2026-09-17" data-color="red">Release</li>
    <li data-date="2026-09-24" data-color="blue">Product launch</li>
    <li data-date="2026-09-29" data-color="lime">Team lunch</li>
  </ul>
</div>

Click a day to pick it, or use the keyboard: arrows move a day or a week, Home/End go to the week's start or end, PgUp/PgDn change month (with Shift: year). On phones the chips turn into colored dots.

Date picker

.calendar-sm is a compact picker: days only, with a dot on days that have events. Listen to momo:date for the picked day.

Picked: 2026-09-17

<div class="calendar calendar-sm" data-momo-calendar data-month="2026-09" data-value="2026-09-17" data-today="2026-09-10" id="cal-pick">
  <ul class="calendar-events" hidden>
    <li data-date="2026-09-03">Team meeting</li>
    <li data-date="2026-09-17">Photoshoot</li>
    <li data-date="2026-09-24">Product launch</li>
  </ul>
</div>
<p class="form-hint">Picked: <b id="cal-picked">2026-09-17</b></p>

Agenda

.agenda lists meetings with a colored bar on the left (.is-<color>), a title, a line under it and the time on the right.

  • Team meetingOnline meeting9 AM - 10 AM
  • Interview with applicantOffline meet11 AM - 12 PM
  • Weekly meetingOnline meeting2 PM - 4 PM
<ul class="agenda">
  <li class="agenda-item"><span class="agenda-text"><span class="agenda-title">Team meeting</span><span class="agenda-sub">Online meeting</span></span><span class="agenda-time">9 AM - 10 AM</span></li>
  <li class="agenda-item is-green"><span class="agenda-text"><span class="agenda-title">Interview with applicant</span><span class="agenda-sub">Offline meet</span></span><span class="agenda-time">11 AM - 12 PM</span></li>
  <li class="agenda-item is-orange"><span class="agenda-text"><span class="agenda-title">Weekly meeting</span><span class="agenda-sub">Online meeting</span></span><span class="agenda-time">2 PM - 4 PM</span></li>
</ul>

Week strip

.week-strip shows seven days in a row, like the top of a phone schedule. Mark today with .is-today and the picked day with aria-pressed="true".

Mon
Tue
Wed
Thu
Fri
Sat
Sun
<div class="week-strip" role="group" aria-label="This week">
  <div>Mon<button class="calendar-day" type="button" aria-pressed="false">31</button></div>
  <div>Tue<button class="calendar-day" type="button" aria-pressed="false">1</button></div>
  <div>Wed<button class="calendar-day" type="button" aria-pressed="false">2</button></div>
  <div class="is-today">Thu<button class="calendar-day" type="button" aria-pressed="true">3</button></div>
  <div>Fri<button class="calendar-day" type="button" aria-pressed="false">4</button></div>
  <div>Sat<button class="calendar-day" type="button" aria-pressed="false">5</button></div>
  <div>Sun<button class="calendar-day" type="button" aria-pressed="false">6</button></div>
</div>

Options

AttributeDoes
data-month="2026-09"The month to show first (default: this month)
data-value="2026-09-03"The picked day
data-week-start="0"Start weeks on Sunday (default Monday)
data-locale="fr"Month and day names (default: the page language)
data-max="2"Events shown per day before "+n more" (default 3)

JavaScript

cal.addEventListener('momo:date', (e) => console.log(e.detail.date, e.detail.events));
cal.addEventListener('momo:month', (e) => loadEvents(e.detail.month));
Momo.calendar.go(cal, '2026-10');
Momo.calendar.pick(cal, '2026-10-12');

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