Demo
  • HEROES & NAV

    • Hero Sections
    • Bold Heroes
    • Breadcrumbs
    • Banner Patterns
    • Floating Bars

    SOCIAL PROOF

    • Single Reviews
    • Multi Reviews
    • Multi Reviews (Alt)
    • Testimonial Sliders
    • Logo Grids
    • Stats & Counters

    CONTENT

    • Simple Post
    • Advanced Post
    • Modern Post
    • Timeline
    • Team Sections
    • Changelog
    • Careers
    • Events

    FORMS & FEEDBACK

    • CTA Sections
    • Contact Forms
    • Newsletter
    • Cookie Consent
    • Toasts

    FEATURES

    • 3 Card features
    • 4 Card Features
    • 6 Card Features
    • Feature Blocks
    • Process

    INTERACTIVE

    • Toggle Panels
    • Tabbed Sections
    • Video Lightboxes
    • Swiper Sliders
    • Vertical Sliders
    • Thumbnail Siders
    • Marquee Tickers
    • Before / After

    COMMERCE & DATA

    • Pricing Sections
    • Comparation Tables
    • Data tables

    LAYOUT

    • Footer Sections
    • Image Grids
    • Empty States
    • 404 Pages

    NAVIGATION

    • Navigation Bars

    MEDIA

    • Image Block
    • Icon Block
    • Video Block
    • Video Lightbox Block
    • Avatar Block

    DISPLAY

    • Badge Block
    • Tag Block
    • Tooltip Block
    • Card Block
    • Divider Block
    • Breadcrumb Block

    Layout

    • Grid Block
    • Flex Block
    • Absolute Box Block

    TYPOGRAPHY

    • Heading Block
    • Paragraph Block
    • List Block
    • Blockquote Block

    INTERACTIVE

    • Button Block
    • Link Button Block
    • Accordion Block
    • Tabs Block
    • Slider Block
    • Thumbnail Slider Block
    • Marquee Block
    • Before After Slider Block

    DATA & CCOMMERCE

    • Data Table Block
    • Pricing Block
    • Progress Block
    • Timeline Block

    FORMS

    • Contact Form Block

    TECH & SAAS

    • Helios
    • Tempo
    • Verso
    • Ledge Finance

    TRAVEL & LEISURE

    • Meridian
    • Traverse
    • Vela
    • Wildpath
    • Poseidon

    HOSPITALITY

    • Wineatic
    • Trattoria Sole
    • Santa Lucia

    SERVICES & DESIGN

    • Kova
    • Haven Studio
    • Volta
    • Pxlcraft
    • Apex Agency

    SPECIALITY

    • Bright Smile
    • Dentist Modern
    • Bento
  • Ecommerce
  • Docs
Websites
Patterns
HEROES & NAV
Hero SectionsBold HeroesBreadcrumbsBanner PatternsFloating Bars
SOCIAL PROOF
Single ReviewsMulti ReviewsMulti Reviews (Alt)Testimonial SlidersLogo GridsStats & Counters
CONTENT
Simple PostAdvanced PostModern PostTimelineTeam SectionsChangelogCareersEvents
FORMS & FEEDBACK
CTA SectionsContact FormsNewsletterCookie ConsentToasts
FEATURES
3 Card features4 Card Features6 Card FeaturesFeature BlocksProcess
INTERACTIVE
Toggle PanelsTabbed SectionsVideo LightboxesSwiper SlidersVertical SlidersThumbnail SidersMarquee TickersBefore / After
COMMERCE & DATA
Pricing SectionsComparation TablesData tables
LAYOUT
Footer SectionsImage GridsEmpty States404 Pages
Blocks
NAVIGATION
Navigation Bars
MEDIA
Image BlockIcon BlockVideo BlockVideo Lightbox BlockAvatar Block
DISPLAY
Badge BlockTag BlockTooltip BlockCard BlockDivider BlockBreadcrumb Block
Layout
Grid BlockFlex BlockAbsolute Box Block
TYPOGRAPHY
Heading BlockParagraph BlockList BlockBlockquote Block
INTERACTIVE
Button BlockLink Button BlockAccordion BlockTabs BlockSlider BlockThumbnail Slider BlockMarquee BlockBefore After Slider Block
DATA & CCOMMERCE
Data Table BlockPricing BlockProgress BlockTimeline Block
FORMS
Contact Form Block
Demos
TECH & SAAS
HeliosTempoVersoLedge Finance
TRAVEL & LEISURE
MeridianTraverseVelaWildpathPoseidon
HOSPITALITY
WineaticTrattoria SoleSanta Lucia
SERVICES & DESIGN
KovaHaven StudioVoltaPxlcraftApex Agency
SPECIALITY
Bright SmileDentist ModernBento
EcommerceDocs
On This Page
Flex BlockDirectionAlignmentWrapGapBackgroundSpacingBorder & ShadowAll Available Controls
Blocks
Grid Block
Grid Item Block
Flex Block
Absolute Block
Heading Block
Paragraph Block
List Block
Image Block
Icon Block
Video Block
Video Lightbox Block
Button Block
Accordion Block
Tabs Block
Slider Block
Slider Item Block
Thumbnail Slider
Thumbnail Slider Item
Marquee Block
Marquee Item Block
Before / After
Data Table Block
Pricing Card Block
Progress Bar Block
Timline Block
Header Block
Simple Header
Advanced Header
Advanced Header Featured
Float Header
Blog Listing Block
Separator Block
Contact Form Block
Docs

/

Flex Block

Flex Block

A flexible layout container using CSS Flexbox. Arrange child blocks in rows or columns with full control over direction, wrapping, alignment, and spacing — all responsive across breakpoints.

WHAT IT CREATES

Row (horizontal)

A

B

C

Column (vertical)

A

B

C

When to use this block

  • Horizontal rows of elements (icon + text, buttons side by side)
  • Vertical stacking with controlled spacing inside a Grid Item
  • Centering content (horizontally, vertically, or both)
  • Responsive layouts that switch from row to column on mobile

Direction

Controls whether children flow horizontally (row) or vertically (column). Set different directions per breakpoint.

Direction

Sidebar Panel

Base
Column
md
Row
lg
—

RESULT

Mobile — column

Tablet+ — row

Common pattern: flexDirection: "col" on mobile, flexDirectionMd: "row" on tablet — items stack vertically on small screens, sit side-by-side on larger ones.

Options: row, row-reverse, col (column), col-reverse. Default: row.

Alignment

Control how children are positioned along both axes. Responsive across 3 breakpoints.

Justify Content

Main axis

start

center

end

between

around

evenly

Align Items

Cross axis

start

center

end

Both controls are responsive: set different values for mobile, tablet (Md), and desktop (Lg).

Wrap

Controls whether children wrap to the next line when they don't fit in one row.

No Wrap

Items shrink or overflow

Wrap

Items flow to next line

Wrap Reverse

Wraps upward

Gap

Space between children. Separate controls for horizontal (X) and vertical (Y) gaps.

Gap

Sidebar Panel

Gap X (horizontal)

4

Gap Y (vertical)

3

SCALE

0

0px

2

8px

4

16px

6

24px

8

32px

10

40px

12

48px

16

64px

Responsive: gapXMd, gapXLg, gapYMd, gapYLg for tablet and desktop.

Background

Solid color or CSS gradient. No background image support on this block — use a Grid Block or Grid Item for image backgrounds.

Background

Color

#FAFAFA

Gradient

None

Spacing

Padding and margin in pixels. Responsive across mobile, tablet, and desktop.

Responsive:

Mobile

Tablet

Desktop

Border & Shadow

Per-side borders, per-corner radius, and shadow presets. All responsive. Same system as Grid Block.

Border

Width, color, style per side. Responsive across mobile, tablet, desktop.

Radius & Shadow

Per-corner radius. Shadow: sm, base, md, lg, xl, 2xl, inner.

All Available Controls

Direction row, col, reverse — 3 breakpoints

flexDirection (mobile), flexDirectionMd, flexDirectionLg. Values: row, row-reverse, col, col-reverse. Default: row.

Wrap wrap, nowrap, wrap-reverse — 3 breakpoints

flexWrap, flexWrapMd, flexWrapLg. Values: wrap, nowrap, wrap-reverse.

Alignment justify + align — 3 breakpoints each

Justify: justifyContent (+Md/Lg) — start, center, end, between, around, evenly.
Align: alignItems (+Md/Lg) — start, center, end, stretch, baseline.

Gap X & Y — 0–16 scale, 3 breakpoints

gapX / gapY (+Md/Lg). Scale: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16.

Background Color or gradient (no image)

backgroundColor (hex), backgroundGradient (CSS gradient, overrides color). No image support.

Spacing Padding & margin, 3 breakpoints

Padding/Margin: top, bottom, left, right in px. Responsive: mobile, Md, Lg.

Border & Shadow Per-side, per-corner, shadow presets

Border: borderMobile/Tablet/Desktop + borderSides. Radius: borderRadiusMobile/Tablet/Desktop. Shadow: sm–2xl, inner.

Related Blocks

Grid Block

CSS Grid layout. Better for equal-column structures and complex 2D layouts.

Grid Item Block

Grid cells that can also enable flex for their own children — similar flex controls.

Absolute Box Block

Overlay positioned content inside Grid Items for badges and decorative elements.

Brandname

Building tools that help teams move faster, ship better, and stay aligned.

Product

  • Features
  • Pricing
  • Integrations
  • Changelog

Company

  • About
  • Blog
  • Careers
  • Press

Resources

  • Documentation
  • API Reference
  • Support
  • Status

© 2026 Brandname. All rights reserved.

Privacy Policy
Terms of Service