Skip to content

scrollbar-gutter

Tailwind CSS v4.3 utilities for reserving stable scrollbar space so layout never shifts when content grows.

InteractivityTailwind v4 Spec
ISS preview
Iced + ISS preview demonstrating scrollbar-gutter
ISS preview for scrollbar-gutter
use iss::{scroll_box_tw, tw};
let list = scroll_box_tw(items, tw!("h-72 overflow-y-auto scrollbar-gutter-stable"));
Tailwind Class CSS Property / Effect iss::typed Builder
scrollbar-gutter-auto scrollbar-gutter: auto; .scrollbar_gutter_auto()
scrollbar-gutter-stable scrollbar-gutter: stable; .scrollbar_gutter_stable()
scrollbar-gutter-both scrollbar-gutter: stable both-edges; .scrollbar_gutter_both()
  • Use with scroll_box_tw (or call scrollbar_gutter_insets directly) to reserve space for scrollbars.

scrollbar-width · scrollbar-color · scroll-padding