Skip to content
v0.9.1
Helpers

Stretched link

Make a whole card clickable with one real link inside it. Add .stretched-link to the link: its click area covers the card. Other buttons and links in the card still work on their own.

Clickable card

Paid

Order #10421

Ana Kim · 3 items · $129.00

Pending

Order #10420

Marco Rossi · 1 item · $48.50

<div class="card-grid">
  <article class="card card-body stack gap-2">
    <span class="badge badge-green self-start">Paid</span>
    <h3 class="m-0 text-lg"><a class="stretched-link link-reset" href="#">Order #10421</a></h3>
    <p class="m-0 text-sm text-muted">Ana Kim · 3 items · $129.00</p>
    <div class="hstack mt-2"><span class="spacer"></span><button class="btn btn-sm" type="button" data-momo-toast="Receipt sent">Email receipt</button></div>
  </article>
  <article class="card card-body stack gap-2">
    <span class="badge badge-yellow self-start">Pending</span>
    <h3 class="m-0 text-lg"><a class="stretched-link link-reset" href="#">Order #10420</a></h3>
    <p class="m-0 text-sm text-muted">Marco Rossi · 1 item · $48.50</p>
    <div class="hstack mt-2"><span class="spacer"></span><button class="btn btn-sm" type="button" data-momo-toast="Reminder sent">Remind</button></div>
  </article>
</div>

Click anywhere on a card to follow its link, or the button to do just that. Pressing Tab onto the link draws the focus ring around the whole card.

How far it reaches

The click area covers the nearest box with a position: cards and boxes already have one; for anything else add .relative. Put only one stretched link in a box.

Good to know

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