Flex Shrink
Atomic props for controlling how flex items shrink.
Atomic Props | CSS Properties |
---|---|
flexShrink={value} | flex-shrink: {value} |
#
ShrinkUse flexShrink={1}
to allow a flex item to shrink if needed.
SyntaxError: Unexpected token (1:8) 1 : return () ^
LIVE DEMO
#
Don't shrinkUse flexShrink={0}
to prevent a flex item from shrinking.
SyntaxError: Unexpected token (1:8) 1 : return () ^
LIVE DEMO