Controls flex and grid positioning along a container’s transverse axis.
Class | Property |
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 responsive modifiers
Using responsive breakpoints like sm:ai-*
,
md:ai-*
, lg:ai-*
, and xxl:ai-*
allows targeting specific utilities in
different viewports.
Using hover modifiers
Using :hover
modifiers such as h:ai-*
allows
you to override elements and change their values when hovering over them.