Skip to content

min-width

Utilities for setting the minimum width constraint of an element.

ISS preview
Iced + ISS preview demonstrating min-width
ISS preview for min-width
use iced::widget::container;
use iss::{tw, TwExt};
let col = container(content).tw(tw!("flex-1 min-w-0"));
Tailwind Class CSS Property / Effect iss::typed Builder
min-w-<n> min-width: calc(var(--spacing) * <n>); .min_w(48)
min-w-0 / min-w-full min-width: 0px / 100%; .min_w(0) / .min_w_full()
min-w-min / min-w-max / min-w-fit min-width: min-content / max-content / fit-content; .min_w_fit()
min-w-3xs .. min-w-7xl Container scale minimum widths; .min_w_px(384)
min-w-[200px] min-width: 200px; .min_w_px(200)
  • Add min-w-0 to flex children with truncate text so they shrink inside narrow panes.

width · max-width · min-inline-size