This is a preview, you can find the current version here.
Last updated: 12/16/2025

Overflow

Atomic overflow classes allow you to change an element's overflow properties quickly.

Classes

ClassOutputDefinition
.overflow-autooverflow: auto;

If content fits inside the content box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers like Firefox provide scrollbars if content overflows.

.overflow-x-autooverflow-x: auto;

If content fits inside the content box, it looks the same as visible in the x dimension, but still establishes a new block-formatting context. Desktop browsers like Firefox provide scrollbars if content overflows.

.overflow-y-autooverflow-y: auto;

If content fits inside the content box, it looks the same as visible in the y dimension, but still establishes a new block-formatting context. Desktop browsers like Firefox provide scrollbars if content overflows.

.overflow-hiddenoverflow: hidden;

Content is clipped if necessary to fit the content box. No scrollbars are provided.

.overflow-x-hiddenoverflow-x: hidden;

Content is clipped if necessary to fit the content box. No scrollbars are provided in the x dimension.

.overflow-y-hiddenoverflow-y: hidden;

Content is clipped if necessary to fit the content box. No scrollbars are provided in the y dimension.

.overflow-scrolloverflow: scroll;

Content is clipped if necessary to fit the content box. Browsers display scrollbars whether or not any content is actually clipped. (This prevents scrollbars from appearing or disappearing when the content changes.) Printers may still print overflowing content.

.overflow-x-scrolloverflow-x: scroll;

Content is clipped if necessary to fit the content box. Browsers display scrollbars whether or not any content is actually clipped in the x dimension.

.overflow-y-scrolloverflow-y: scroll;

Content is clipped if necessary to fit the content box. Browsers display scrollbars whether or not any content is actually clipped in the y dimension.

.overflow-visibleoverflow: visible;

Content is not clipped and may be rendered outside the content box. This is the default value.

Examples

<div class="overflow-auto"></div>
<div class="overflow-x-auto"></div>
<div class="overflow-y-auto"></div>
<div class="overflow-hidden"></div>
<div class="overflow-x-hidden"></div>
<div class="overflow-y-hidden"></div>
<div class="overflow-scroll"></div>
<div class="overflow-x-scroll"></div>
<div class="overflow-y-scroll"></div>
<div class="overflow-visible"></div>
Edit on GitHub