# Z-Index Control the stack order of elements with z-index utilities. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-z-index--introduction ## Variants documented in Storybook - ZIndexShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-z-index--zindexshowcase ## 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 Z-Index. 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 z-index utility classes.
Every class from the utility library, categorized for easy access.
Format: ux4g-z-{index}
|
Z-Index -1
ux4g-z-n1
|
|
Z-Index 0
ux4g-z-0
|
|
Z-Index 1
ux4g-z-1
|
|
Z-Index 2
ux4g-z-2
|
|
Z-Index 3
ux4g-z-3
|
A complete reference of all z-index utility classes.
Every class from the utility library, categorized for easy access.
Format:
ux4g-z-{index}
|
Z-Index -1
ux4g-z-n1
|
|
Z-Index 0
ux4g-z-0
|
|
Z-Index 1
ux4g-z-1
|
|
Z-Index 2
ux4g-z-2
|
|
Z-Index 3
ux4g-z-3
|
A complete reference of all z-index utility classes.
Every class from the utility library, categorized for easy access.
Format: ux4g-z-{index}
|
Z-Index -1
ux4g-z-n1
|
|
Z-Index 0
ux4g-z-0
|
|
Z-Index 1
ux4g-z-1
|
|
Z-Index 2
ux4g-z-2
|
|
Z-Index 3
ux4g-z-3
|