Spectrum 2 is now available! Check out the migration docs.

Flex

A layout container using flexbox. Provides Spectrum dimension values, and supports the gap property to define consistent spacing between items.

installyarn add @adobe/react-spectrum
added3.0.0
usageimport {Flex} from '@adobe/react-spectrum'

Introduction#


The Flex component can be used to layout its children in one dimension with flexbox. Any React Spectrum component can be used as a child, and