Skip to content

min-height

Utilities for setting the minimum height constraint of an element.

ISS preview
Iced + ISS preview demonstrating min-height
ISS preview for min-height
use iced::widget::container;
use iss::{tw, TwExt};
let panel = container(body).tw(tw!("w-full min-h-48 p-5 bg-zinc-900 rounded-xl"));
Tailwind Class CSS Property / Effect iss::typed Builder
min-h-<n> min-height: calc(var(--spacing) * <n>); .min_h(16)
min-h-0 / min-h-full / min-h-screen min-height: 0px / 100% / 100vh; .min_h(0) / .min_h_full() / .min_h_screen()
min-h-dvh / min-h-fit Viewport and intrinsic min-height; .min_h_fit()
min-h-[120px] min-height: 120px; .min_h_px(120)
  • Add min-h-0 inside nested flex columns so scrollable children shrink instead of overflowing.

height · max-height · min-block-size