Skip to content
v0.9.1
Helpers

Hover reveal

Actions that show up when you point at their row or card, so busy screens stay calm and the buttons are right there when you need them. Pure CSS.

Table rows

Add .reveal to the actions. Table rows are groups already; for anything else add .reveal-group to the thing you point at.

OrderCustomerTotalActions
#10421Ana Kim$129.00
#10420Marco Rossi$48.50
<div class="table-wrap">
  <table class="table table-hover">
    <thead><tr><th>Order</th><th>Customer</th><th class="text-end">Total</th><th><span class="visually-hidden">Actions</span></th></tr></thead>
    <tbody>
      <tr><td>#10421</td><td>Ana Kim</td><td class="text-end">$129.00</td><td class="text-end"><span class="reveal inline-flex gap-1"><button class="btn btn-icon btn-sm btn-ghost" type="button" aria-label="Edit order 10421"><i class="mi mi-pencil"></i></button><button class="btn btn-icon btn-sm btn-ghost" type="button" aria-label="Delete order 10421"><i class="mi mi-trash"></i></button></span></td></tr>
      <tr><td>#10420</td><td>Marco Rossi</td><td class="text-end">$48.50</td><td class="text-end"><span class="reveal inline-flex gap-1"><button class="btn btn-icon btn-sm btn-ghost" type="button" aria-label="Edit order 10420"><i class="mi mi-pencil"></i></button><button class="btn btn-icon btn-sm btn-ghost" type="button" aria-label="Delete order 10420"><i class="mi mi-trash"></i></button></span></td></tr>
    </tbody>
  </table>
</div>

Swap a value for actions

.reveal-swap holds two things in one spot: .reveal-off shows normally (a time, a count) and the .reveal takes its place on hover. .reveal-slide slides in as it appears.

  • Design review10:30
  • Weekly planning14:00
<ul class="divide-y divide-soft box p-0 max-w-md">
  <li class="reveal-group hstack px-4 py-3"><b>Design review</b><span class="spacer"></span><span class="reveal-swap"><span class="reveal-off text-sm text-muted">10:30</span><span class="reveal reveal-slide inline-flex gap-1"><button class="btn btn-sm" type="button">Join</button></span></span></li>
  <li class="reveal-group hstack px-4 py-3"><b>Weekly planning</b><span class="spacer"></span><span class="reveal-swap"><span class="reveal-off text-sm text-muted">14:00</span><span class="reveal reveal-slide inline-flex gap-1"><button class="btn btn-sm" type="button">Join</button></span></span></li>
</ul>

When they show

The space is kept, so nothing jumps when the actions appear. Every action still needs its own name (aria-label) for screen readers.

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