flex-shrink
Utilities for controlling how much a flex item shrinks when space is tight.
ISS preview

Examples
Section titled “Examples”use iced::widget::container;use iss::{tw, TwExt};
let avatar = container(img).tw(tw!("size-10 shrink-0 rounded-full overflow-hidden"));use iss::typed::*;
let style = IssStyle::new().size(10).shrink_0().rounded_full();Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
shrink |
flex-shrink: 1; |
.shrink() |
shrink-0 |
flex-shrink: 0; |
.shrink_0() |
shrink-<n> / shrink-[2] |
flex-shrink: <n>; |
.shrink_n(2) |
Behavior Notes
Section titled “Behavior Notes”- Add
shrink-0to icons, avatars, and fixed toolbars insideflex_twso they do not compress on narrow widths.
Related Utilities
Section titled “Related Utilities”flex · flex-grow · flex-basis