Back to Vuetify

Overflow

packages/docs/src/pages/en/styles/overflow.md

4.1.51.6 KB
Original Source

Overflow

Configure how content overflows when it becomes out of container bounds.

<PageFeatures />
ClassProperties
overflowoverflow: auto;
overflow-autooverflow: auto;
overflow-hiddenoverflow: hidden;
overflow-visibleoverflow: visible;
overflow-xoverflow-x: auto;
overflow-x-autooverflow-x: auto;
overflow-x-hiddenoverflow-x: hidden;
overflow-x-scrolloverflow-x: scroll;
overflow-x-visibleoverflow-x: visible;
overflow-yoverflow-y: auto;
overflow-y-autooverflow-y: auto;
overflow-y-hiddenoverflow-y: hidden;
overflow-y-scrolloverflow-y: scroll; { style="max-height: 420px;" fixed-header }
overflow-y-visibleoverflow-y: visible;
<PromotedEntry />

Usage

Specify the elements overflow, overflow-x, or overflow-y property. These classes can be applied using the following format: {overflow}-{value}. Where overflow refers to the type: overflow, overflow-x or overflow-y and value can be one of: auto, hidden, or visible

Overflow property

overflow-auto is used to add scrollbars to an element when its content overflows the bounds. while overflow-hidden is used to clip any content that overflows the bounds. overflow-visible will prevent content from being clipped even when it overflows the bounds.

<ExamplesExample file="overflow/overflow" />

Overflow X property

overflow-x can be used to specify horizontal overflows to an element if needed.

<ExamplesExample file="overflow/overflow-x" />