Skip to content
v0.9.1
Helpers

Stacks

The four layouts you reach for all day, as one class each: a column (stack), a row (hstack), a row that wraps (cluster), and a spacer that pushes things apart.

Column

.stack puts 16px between children. Any gap-* changes it.

<form class="stack max-w-sm">
  <div class="form-field m-0"><label class="form-label" for="st-n">Project name</label><input class="form-control" id="st-n"></div>
  <div class="form-field m-0"><label class="form-label" for="st-o">Owner</label><input class="form-control" id="st-o"></div>
  <button class="btn btn-brand" type="button">Create</button>
</form>

Row with a spacer

.hstack lines children up in a row, centered up and down, 12px apart. A .spacer takes all the free space, pushing what comes after it to the end.

SW Sallie Wade Owner
<div class="hstack box p-3">
  <span class="avatar avatar-sm bg-cyan">SW</span>
  <b>Sallie Wade</b>
  <span class="badge">Owner</span>
  <span class="spacer"></span>
  <button class="btn btn-sm btn-ghost" type="button">Message</button>
  <button class="btn btn-sm" type="button">Follow</button>
</div>

Row that wraps

.cluster wraps onto more lines when it runs out of room (tags, filter buttons, actions). 8px apart.

DesignResearchCopywritingFront endAccessibilityMotionUser testing
<div class="cluster">
  <span class="tag">Design</span><span class="tag">Research</span><span class="tag">Copywriting</span><span class="tag">Front end</span><span class="tag">Accessibility</span><span class="tag">Motion</span><span class="tag">User testing</span>
</div>

Classes

ClassIs
.stackA column, 16px apart (--stack-gap)
.hstackA row, centered up and down, 12px apart
.clusterA wrapping row, 8px apart
.spacerTakes the free space in a row or column

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