Skip to content

overflow

Utilities for controlling how content that exceeds an element’s box is clipped or scrolled.

ISS preview
Iced + ISS preview demonstrating overflow
ISS preview for overflow
use iced::widget::container;
use iss::{tw, TwExt};
let pane = container(body).tw(tw!("h-64 overflow-y-auto overflow-x-hidden rounded-xl border border-zinc-800"));
Tailwind Class CSS Property / Effect iss::typed Builder
overflow-auto overflow: auto; .overflow_auto()
overflow-hidden overflow: hidden; .overflow_hidden()
overflow-clip overflow: clip; .overflow_clip()
overflow-visible overflow: visible; .overflow_visible()
overflow-scroll overflow: scroll; .overflow_scroll()
overflow-x-* / overflow-y-* overflow-x / overflow-y: ...; .overflow_x_auto() / .overflow_y_auto()
  • Combine overflow-hidden with rounded-* to clip flush child headers, images, and buttons cleanly to the rounded corners.
  • overflow-y-auto and overflow-x-auto attach scrollable regions that honor scrollbar-* utilities.

overscroll-behavior · scrollbar-width · scrollbar-color · border-radius