Layout / The visual dictionary

Flex layout.

A layout where children share and redistribute space along an axis.

Also calledflexboxflex row
01

See it in context

UI illustration
A
Flexible
B
A
Flexible
B
Available space is shared

A layout where children share and redistribute space along an axis. Allow suitable items to grow, shrink, or wrap while preserving order and alignment.

When to use it

Use it for toolbars and rows whose contents have different widths.

Know the difference

Flex layout distributes available space; fixed positioning ignores normal flow.

WebiOSiPadOSAndroidmacOSWindowsLinux

Web · iOS · iPadOS · Android · macOS · Windows · Linux

Flexbox is a CSS mechanism; native platforms offer equivalent flexible constraints and stack behavior.

Primary documentation for the pattern and its platform conventions.