Skip to main content

Flex Shrink

Utilities for controlling how flex items shrink.

CSS Property:flex-shrink
Classes:2

Flex Shrink Classes

ClassCSS
shrinkflex-shrink: 1;
shrink-0flex-shrink: 0;

Arbitrary Values

You can use arbitrary values with square bracket notation when you need a specific value not included in the default scale.

shrink-[2]shrink-[0.5]

Responsive Variants

Apply flex shrink utilities at specific breakpoints using responsive prefixes.

BreakpointPrefixExample
640px+sm:sm:shrink
768px+md:md:shrink
1024px+lg:lg:shrink
1280px+xl:xl:shrink
1536px+2xl:2xl:shrink