Skip to content

Flexbox

Overview

The Flexbox element provides a flexible layout mechanism for placing elements next to each other and controlling their alignment. It is useful when layouts should adapt smoothly to available space.

When to use

  • When a page needs responsive horizontal alignment
  • When elements should grow, shrink, or align flexibly
  • When a more fluid layout is needed than a fixed grid

Element-specific options

OptionDescription
DirectionDefines whether content flows horizontally or vertically
AlignmentDefines how elements are aligned on the main axis
JustificationDefines how space is distributed between elements
WrappingDefines whether items wrap onto multiple lines
Gap or spacingDefines the space between items
Responsive behaviorDefines how the layout changes on different screen sizes

Common configuration

This element also supports shared configuration options such as validation, rules, roles, styling, summaries, scoring, and prefilling.

See: Common element configuration