# Display Quickly and responsively toggle the display value of components and more with our display utilities. **Category:** Utilities **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-display--introduction ## Variants documented in Storybook - DisplayShowcase: https://doc.ux4g.gov.in/web/?path=/story/ux4g-utilities-display--displayshowcase ## 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 Display. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Display Showcase — Display None HTML: ```html
Quickly and responsively toggle the display value of components and more with our display utilities.
Every class from the utility library, categorized for easy access.
Format: ux4g-d-{display}
|
None
ux4g-d-none
|
|
Inline
ux4g-d-inline
|
|
Inline Block
ux4g-d-inline-block
|
|
Block
ux4g-d-block
|
|
Table
ux4g-d-table
|
|
Table Row
ux4g-d-table-row
|
|
Table Cell
ux4g-d-table-cell
|
|
Flex
ux4g-d-flex
|
|
Inline Flex
ux4g-d-inline-flex
|
|
Contents
ux4g-d-contents
|
|
List Item
ux4g-d-list-item
|
Format: ux4g-d-{display}
|
Print None
ux4g-d-print-none
|
|
Print Inline
ux4g-d-print-inline
|
|
Print Inline Block
ux4g-d-print-inline-block
|
|
Print Block
ux4g-d-print-block
|
|
Print Table
ux4g-d-print-table
|
|
Print Flex
ux4g-d-print-flex
|
Format: ux4g-d-{display}
|
Sm None
ux4g-d-sm-none
|
|
Sm Inline
ux4g-d-sm-inline
|
|
Sm Inline Block
ux4g-d-sm-inline-block
|
|
Sm Block
ux4g-d-sm-block
|
|
Sm Grid
ux4g-d-sm-grid
|
|
Sm Table
ux4g-d-sm-table
|
|
Sm Flex
ux4g-d-sm-flex
|
|
Md None
ux4g-d-md-none
|
|
Md Inline
ux4g-d-md-inline
|
|
Md Inline Block
ux4g-d-md-inline-block
|
|
Md Block
ux4g-d-md-block
|
|
Md Grid
ux4g-d-md-grid
|
|
Md Table
ux4g-d-md-table
|
|
Md Flex
ux4g-d-md-flex
|
|
Lg None
ux4g-d-lg-none
|
|
Lg Inline
ux4g-d-lg-inline
|
|
Lg Inline Block
ux4g-d-lg-inline-block
|
|
Lg Block
ux4g-d-lg-block
|
|
Lg Grid
ux4g-d-lg-grid
|
|
Lg Table
ux4g-d-lg-table
|
|
Lg Flex
ux4g-d-lg-flex
|
|
Xl None
ux4g-d-xl-none
|
|
Xl Inline
ux4g-d-xl-inline
|
|
Xl Inline Block
ux4g-d-xl-inline-block
|
|
Xl Block
ux4g-d-xl-block
|
|
Xl Grid
ux4g-d-xl-grid
|
|
Xl Table
ux4g-d-xl-table
|
|
Xl Flex
ux4g-d-xl-flex
|
|
2xl None
ux4g-d-2xl-none
|
|
2xl Inline
ux4g-d-2xl-inline
|
|
2xl Inline Block
ux4g-d-2xl-inline-block
|
|
2xl Block
ux4g-d-2xl-block
|
|
2xl Grid
ux4g-d-2xl-grid
|
|
2xl Table
ux4g-d-2xl-table
|
|
2xl Flex
ux4g-d-2xl-flex
|
Quickly and responsively toggle the display value of components and more with our display utilities.
Every class from the utility library, categorized for easy access.
Format:
ux4g-d-{display}
|
None
ux4g-d-none
|
|
Inline
ux4g-d-inline
|
|
Inline Block
ux4g-d-inline-block
|
|
Block
ux4g-d-block
|
|
Table
ux4g-d-table
|
|
Table Row
ux4g-d-table-row
|
|
Table Cell
ux4g-d-table-cell
|
|
Flex
ux4g-d-flex
|
|
Inline Flex
ux4g-d-inline-flex
|
|
Contents
ux4g-d-contents
|
|
List Item
ux4g-d-list-item
|
Format:
ux4g-d-{display}
|
Print None
ux4g-d-print-none
|
|
Print Inline
ux4g-d-print-inline
|
|
Print Inline Block
ux4g-d-print-inline-block
|
|
Print Block
ux4g-d-print-block
|
|
Print Table
ux4g-d-print-table
|
|
Print Flex
ux4g-d-print-flex
|
Format:
ux4g-d-{display}
|
Sm None
ux4g-d-sm-none
|
|
Sm Inline
ux4g-d-sm-inline
|
|
Sm Inline Block
ux4g-d-sm-inline-block
|
|
Sm Block
ux4g-d-sm-block
|
|
Sm Grid
ux4g-d-sm-grid
|
|
Sm Table
ux4g-d-sm-table
|
|
Sm Flex
ux4g-d-sm-flex
|
|
Md None
ux4g-d-md-none
|
|
Md Inline
ux4g-d-md-inline
|
|
Md Inline Block
ux4g-d-md-inline-block
|
|
Md Block
ux4g-d-md-block
|
|
Md Grid
ux4g-d-md-grid
|
|
Md Table
ux4g-d-md-table
|
|
Md Flex
ux4g-d-md-flex
|
|
Lg None
ux4g-d-lg-none
|
|
Lg Inline
ux4g-d-lg-inline
|
|
Lg Inline Block
ux4g-d-lg-inline-block
|
|
Lg Block
ux4g-d-lg-block
|
|
Lg Grid
ux4g-d-lg-grid
|
|
Lg Table
ux4g-d-lg-table
|
|
Lg Flex
ux4g-d-lg-flex
|
|
Xl None
ux4g-d-xl-none
|
|
Xl Inline
ux4g-d-xl-inline
|
|
Xl Inline Block
ux4g-d-xl-inline-block
|
|
Xl Block
ux4g-d-xl-block
|
|
Xl Grid
ux4g-d-xl-grid
|
|
Xl Table
ux4g-d-xl-table
|
|
Xl Flex
ux4g-d-xl-flex
|
|
2xl None
ux4g-d-2xl-none
|
|
2xl Inline
ux4g-d-2xl-inline
|
|
2xl Inline Block
ux4g-d-2xl-inline-block
|
|
2xl Block
ux4g-d-2xl-block
|
|
2xl Grid
ux4g-d-2xl-grid
|
|
2xl Table
ux4g-d-2xl-table
|
|
2xl Flex
ux4g-d-2xl-flex
|
Quickly and responsively toggle the display value of components and more with our display utilities.
Every class from the utility library, categorized for easy access.
Format: ux4g-d-{display}
|
None
ux4g-d-none
|
|
Inline
ux4g-d-inline
|
|
Inline Block
ux4g-d-inline-block
|
|
Block
ux4g-d-block
|
|
Table
ux4g-d-table
|
|
Table Row
ux4g-d-table-row
|
|
Table Cell
ux4g-d-table-cell
|
|
Flex
ux4g-d-flex
|
|
Inline Flex
ux4g-d-inline-flex
|
|
Contents
ux4g-d-contents
|
|
List Item
ux4g-d-list-item
|
Format: ux4g-d-{display}
|
Print None
ux4g-d-print-none
|
|
Print Inline
ux4g-d-print-inline
|
|
Print Inline Block
ux4g-d-print-inline-block
|
|
Print Block
ux4g-d-print-block
|
|
Print Table
ux4g-d-print-table
|
|
Print Flex
ux4g-d-print-flex
|
Format: ux4g-d-{display}
|
Sm None
ux4g-d-sm-none
|
|
Sm Inline
ux4g-d-sm-inline
|
|
Sm Inline Block
ux4g-d-sm-inline-block
|
|
Sm Block
ux4g-d-sm-block
|
|
Sm Grid
ux4g-d-sm-grid
|
|
Sm Table
ux4g-d-sm-table
|
|
Sm Flex
ux4g-d-sm-flex
|
|
Md None
ux4g-d-md-none
|
|
Md Inline
ux4g-d-md-inline
|
|
Md Inline Block
ux4g-d-md-inline-block
|
|
Md Block
ux4g-d-md-block
|
|
Md Grid
ux4g-d-md-grid
|
|
Md Table
ux4g-d-md-table
|
|
Md Flex
ux4g-d-md-flex
|
|
Lg None
ux4g-d-lg-none
|
|
Lg Inline
ux4g-d-lg-inline
|
|
Lg Inline Block
ux4g-d-lg-inline-block
|
|
Lg Block
ux4g-d-lg-block
|
|
Lg Grid
ux4g-d-lg-grid
|
|
Lg Table
ux4g-d-lg-table
|
|
Lg Flex
ux4g-d-lg-flex
|
|
Xl None
ux4g-d-xl-none
|
|
Xl Inline
ux4g-d-xl-inline
|
|
Xl Inline Block
ux4g-d-xl-inline-block
|
|
Xl Block
ux4g-d-xl-block
|
|
Xl Grid
ux4g-d-xl-grid
|
|
Xl Table
ux4g-d-xl-table
|
|
Xl Flex
ux4g-d-xl-flex
|
|
2xl None
ux4g-d-2xl-none
|
|
2xl Inline
ux4g-d-2xl-inline
|
|
2xl Inline Block
ux4g-d-2xl-inline-block
|
|
2xl Block
ux4g-d-2xl-block
|
|
2xl Grid
ux4g-d-2xl-grid
|
|
2xl Table
ux4g-d-2xl-table
|
|
2xl Flex
ux4g-d-2xl-flex
|