| Class | Description | |
|---|---|---|
shrinkLets a flex item shrink by the --shrink factor when space is limited. CSS Rules Usage
The .shrink
class is flagged as a value-driven selector.
The variable --shrink is required. Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The Shorthand
Value-driven classes support a shorthand syntax like CLS Alert
This feature may cause CLS (Cumulative Layout
Shift). Make sure to include a
| .shrink | Lets a flex item shrink by the --shrink factor when space is limited. |
shrink-1Sets flex-shrink: 1. Item shrinks when space is limited. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .shrink-1 | Sets flex-shrink: 1. Item shrinks when space is limited. |
shrink-0Sets flex-shrink: 0. Item will not shrink. CSS Rules Usage Responsive
Prefix
States
States are generated dynamically at runtime and always
come last. Append a state like
Supported pseudo-classes: Group Hover Example
The Pseudo-Elements
The | .shrink-0 | Sets flex-shrink: 0. Item will not shrink. |