# Overflow Utilities for controlling how content is handled when it exceeds its container\'s boundaries. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-overflow--introduction ## Variants documented in Storybook - OverflowShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-overflow--overflowshowcase ## Framework setup ### HTML / CDN ```html ``` ### React ```bash npm install ux4g-web-components ``` ```jsx import 'ux4g-web-components/styles.css'; import 'ux4g-web-components/design-system'; ``` ### Angular Update `angular.json`: ```json { "styles": [ "node_modules/ux4g-web-components/styles/ux4g.css", "src/styles.css" ], "scripts": [ "node_modules/ux4g-web-components/dist/runtime/design-system.js" ] } ``` ## Code examples The snippets below are extracted from the Storybook canvas for Overflow. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Introduction — Introduction HTML: ```html
A complete reference of all overflow utility classes for controlling container clipping and scrolling.
Every class from the utility library, categorized for easy access.
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-auto
|
|
Hidden
ux4g-o-hidden
|
|
Visible
ux4g-o-visible
|
|
Scroll
ux4g-o-scroll
|
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-x-auto
|
|
Hidden
ux4g-o-x-hidden
|
|
Visible
ux4g-o-x-visible
|
|
Scroll
ux4g-o-x-scroll
|
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-y-auto
|
|
Hidden
ux4g-o-y-hidden
|
|
Visible
ux4g-o-y-visible
|
|
Scroll
ux4g-o-y-scroll
|
A complete reference of all overflow utility classes for controlling container clipping and scrolling.
Every class from the utility library, categorized for easy access.
Format:
ux4g-overflow-{value}
|
Auto
ux4g-o-auto
|
|
Hidden
ux4g-o-hidden
|
|
Visible
ux4g-o-visible
|
|
Scroll
ux4g-o-scroll
|
Format:
ux4g-overflow-{value}
|
Auto
ux4g-o-x-auto
|
|
Hidden
ux4g-o-x-hidden
|
|
Visible
ux4g-o-x-visible
|
|
Scroll
ux4g-o-x-scroll
|
Format:
ux4g-overflow-{value}
|
Auto
ux4g-o-y-auto
|
|
Hidden
ux4g-o-y-hidden
|
|
Visible
ux4g-o-y-visible
|
|
Scroll
ux4g-o-y-scroll
|
A complete reference of all overflow utility classes for controlling container clipping and scrolling.
Every class from the utility library, categorized for easy access.
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-auto
|
|
Hidden
ux4g-o-hidden
|
|
Visible
ux4g-o-visible
|
|
Scroll
ux4g-o-scroll
|
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-x-auto
|
|
Hidden
ux4g-o-x-hidden
|
|
Visible
ux4g-o-x-visible
|
|
Scroll
ux4g-o-x-scroll
|
Format: ux4g-overflow-{value}
|
Auto
ux4g-o-y-auto
|
|
Hidden
ux4g-o-y-hidden
|
|
Visible
ux4g-o-y-visible
|
|
Scroll
ux4g-o-y-scroll
|
ux4g-o-auto
. Scrollbars will appear only if this content exceeds the bounding box. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non sapien vitae erat.
ux4g-o-auto
. Scrollbars will appear only if this content exceeds the bounding box. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non sapien vitae erat.
ux4g-o-auto
. Scrollbars will appear only if this content exceeds the bounding box. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non sapien vitae erat.
ux4g-o-hidden
. Any content that exceeds the 100px height is clipped and not accessible via scroll.
ux4g-o-hidden
. Any content that exceeds the 100px height is clipped and not accessible via scroll.
ux4g-o-hidden
. Any content that exceeds the 100px height is clipped and not accessible via scroll.
ux4g-o-visible
. Notice how the blue area spills out of the gray bounding box.
ux4g-o-visible
. Notice how the blue area spills out of the gray bounding box.
ux4g-o-visible
. Notice how the blue area spills out of the gray bounding box.
ux4g-o-scroll
. Scrollbars stay visible even if they aren't strictly needed for the content.
ux4g-o-scroll
. Scrollbars stay visible even if they aren't strictly needed for the content.
ux4g-o-scroll
. Scrollbars stay visible even if they aren't strictly needed for the content.