Controls flex and grid positioning along a container’s transverse axis.
Class | Properties |
ai-b | align-items: baseline; |
ai-c | align-items: center; |
ai-fe | align-items: flex-end; |
ai-fs | align-items: flex-start; |
ai-s | align-items: stretch; |
Baseline
Aligns items along the container’s baseline.
Center
Aligns items in the center of the cross axis.
Flex End
Aligns items at the end of the cross axis.
Flex Start
Aligns items at the start of the cross axis.
Stretch
Stretches items to fill the container’s height.
Using breakpoints
Using responsive breakpoints like sm:ai-*
, md:ai-*
, lg:ai-*
, and xxl:ai-*
allows targeting specific utilities in different viewports.
Using variants
Using :hover
variants such as h:ai-*
allows you to override elements and change their values when hovering over them.