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.
| install | yarn add @adobe/react-spectrum |
|---|---|
| added | 3.0.0 |
| usage | import {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