scroll-padding
Utilities for offsetting the snap port inside a scrollable container.
ISS preview

Examples
Section titled “Examples”use iss::{scroll_box_tw, tw};
let carousel = scroll_box_tw(slides, tw!("overflow-x-auto snap-x snap-mandatory scroll-px-6"));use iss::typed::*;
let style = IssStyle::new().overflow_x_auto().snap_x().snap_mandatory().scroll_px(6);Class Reference
Section titled “Class Reference”| Tailwind Class | CSS Property / Effect | iss::typed Builder |
|---|---|---|
scroll-p-<n> / scroll-px-<n> / scroll-py-<n> |
scroll-padding offsets; |
.scroll_p(4) / .scroll_px(4) |
scroll-pt / pr / pb / pl-<n> |
Per-side scroll padding; |
.scroll_pt(6) |
scroll-ps-<n> / scroll-pe-<n> |
Logical inline scroll padding; |
.scroll_ps(4) / .scroll_pe(4) |
scroll-p-[16px] |
Arbitrary scroll padding; |
.scroll_p_px(16) |
Behavior Notes
Section titled “Behavior Notes”- Use with
scroll_box_twandsnap_offset_for_items; logicalscroll-ps/pe-*flip automatically insidedir_rtl(...).