Open this example in the interactive library
Source code
<div class="demo overflow-y-auto overscroll-contain h-20">
<p style="height: 12rem">A scrollable panel with contained overscroll.</p>
</div>
Stop scroll chaining at a panel edge with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo overflow-y-auto overscroll-contain h-20">
<p style="height: 12rem">A scrollable panel with contained overscroll.</p>
</div>