Skip to content
v0.9.1
Components

Command palette

Press Ctrl + K (⌘ + K on Mac) to search and run anything: pages, actions, people. Try it on this page: it searches the whole docs.

Demo

This palette is opened by the button below (it uses Ctrl + J so it doesn't clash with the docs search).

Actions

Go to

DashboardG D Kanban deskG K InboxG I

People

SWSallie WadeProduct designer APAlexandre PaivaDeveloper
↑ ↓ moveEnter runEsc close
<button class="palette-trigger" type="button" data-momo-dialog="cmd-demo"><i class="mi mi-search"></i> Search or jump to… <kbd>Ctrl J</kbd></button>
<dialog class="palette" id="cmd-demo" data-momo-palette="j" aria-label="Commands">
  <div class="palette-search">
    <i class="mi mi-search" aria-hidden="true"></i>
    <input class="palette-input" placeholder="Type a command or search…" aria-label="Type a command or search">
    <kbd>Esc</kbd>
  </div>
  <div class="palette-list">
    <p class="palette-group">Actions</p>
    <button class="palette-item" type="button" data-momo-toast="Task created" data-momo-toast-color="green" data-keywords="add new"><i class="mi mi-circle-plus"></i><span class="palette-label">Create task</span><kbd>C</kbd></button>
    <button class="palette-item" type="button" data-momo-toast="Invite sent" data-keywords="team member add"><i class="mi mi-user-plus"></i><span class="palette-label">Invite people</span></button>
    <button class="palette-item" type="button" data-momo-toast="Dark mode" data-keywords="theme night"><i class="mi mi-moon"></i><span class="palette-label">Switch theme</span><kbd>T</kbd></button>
    <p class="palette-group">Go to</p>
    <a class="palette-item" href="#"><i class="mi mi-layout-dashboard"></i><span class="palette-label">Dashboard</span><span class="palette-hint">G D</span></a>
    <a class="palette-item" href="#"><i class="mi mi-columns-3"></i><span class="palette-label">Kanban desk</span><span class="palette-hint">G K</span></a>
    <a class="palette-item" href="#" data-keywords="mail messages"><i class="mi mi-inbox"></i><span class="palette-label">Inbox</span><span class="palette-hint">G I</span></a>
    <p class="palette-group">People</p>
    <a class="palette-item" href="#" data-keywords="designer"><span class="avatar avatar-xs bg-pink">SW</span><span class="palette-label">Sallie Wade</span><small>Product designer</small></a>
    <a class="palette-item" href="#" data-keywords="developer"><span class="avatar avatar-xs bg-cyan">AP</span><span class="palette-label">Alexandre Paiva</span><small>Developer</small></a>
  </div>
  <div class="palette-foot"><span><kbd>↑</kbd> <kbd>↓</kbd> move</span><span><kbd>Enter</kbd> run</span><span><kbd>Esc</kbd> close</span></div>
</dialog>

How it works

JavaScript

pal.addEventListener('momo:command', (e) => track(e.detail.item.textContent));
Momo.palette.open('cmd-demo');

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