A component for creating flex layouts.
Use the direction prop to set the flex direction. You can change it across breakpoints using the object syntax.
Use the align prop to set the alignment of the flex items across the flex direction. Use the justify prop to control how space is distributed between items along the flex direction.
You can change the values across breakpoints using the object syntax.
We do not plan to implement props for align-self and justify-self. UI code tends to be easier to understand and debug when parent components control the layout. Nesting Flex elements is the way to go when you need different alignment within one container.
Use the wrap prop to control whether the flex items wrap to the next line. You can change the wrapping behaviour across breakpoints using the object syntax.
Use the gap prop to set spacing between flex items. You can change the gap across breakpoints using the object syntax.
In the spirit of lifting layout responsibilities onto parent components, consider spacing elements using Flex with the gap prop instead of margins on the individual items.
Used 2687 times across 2 packages
align
justify
direction
gap
wrap
position
714 files
/branding/edit
/p/:portalSessionId/directory-sync/:directoryId/google-workspace/filter-groups-v2
Show 704 more files