Browse documentation
Reference / Layout
Overflow
Clip content that extends outside a box or make one axis scrollable. A maximum height lets short lists remain compact.
Working example
- Cover proof
- Front matter
- Feature spread
- Endpapers
Give a scrollable panel a visible label or an accessible name and make it reachable by keyboard when its contents have no focusable controls.
<ul aria-label="Print queue" tabindex="0" class="max-h-20 overflow-y-auto border p-2">
<li>Cover proof</li>
<li>Front matter</li>
<li>Feature spread</li>
<li>Endpapers</li>
</ul>Class reference
| Class | CSS declarations |
|---|---|
overflow-auto | overflow: auto; |
overflow-hidden | overflow: hidden; |
overflow-clip | overflow: clip; |
overflow-visible | overflow: visible; |
overflow-scroll | overflow: scroll; |
overflow-x-auto | overflow-x: auto; |
overflow-y-auto | overflow-y: auto; |
View full generated CSS
.overflow-auto {
overflow: auto;
}
.overflow-clip {
overflow: clip;
}
.overflow-hidden {
overflow: hidden;
}
.overflow-scroll {
overflow: scroll;
}
.overflow-visible {
overflow: visible;
}
.overflow-x-auto {
overflow-x: auto;
}
.overflow-y-auto {
overflow-y: auto;
}