# Empty State An Empty state screen is used to prompt the user to take action or provide input when there is no existing data or content to display. **Category:** Components **Storybook:** https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-empty-state--introduction ## Variants documented in Storybook - Empty State Type: https://doc.ux4g.gov.in/web/?path=/story/ux4g-components-empty-state--empty-state-type ## 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 Empty State. Each example shows the rendered HTML, the equivalent React JSX, and the Angular template markup. ### 1. Empty State Type — No results found HTML: ```html
Did you mean:
Did you mean:
Did you mean:
Start your application easily by clicking on the button below.
Start your application easily by clicking on the button below.
Start your application easily by clicking on the button below.
This feature is under development
This feature is under development
This feature is under development
Last updated: 4 minutes ago
Last updated: 4 minutes ago
Last updated: 4 minutes ago
An Empty state screen is used to prompt the user to take action or provide input when there is no existing data or content to display.
Visual demonstration of various Empty State patterns for search, applications, development, and errors.
Did you mean:
Start your application easily by clicking on the button below.
This feature is under development
Last updated: 4 minutes ago
Quickly copy layout and typography classes for Empty States.
|
Base Container
ux4g-empty-state
|
|
Icon Styling
ux4g-empty-state-icon
|
|
Content Wrapper
ux4g-empty-state-content
|
|
Primary Title
ux4g-title-l-strong
|
|
Secondary Body
ux4g-body-m-default
|
An Empty state screen is used to prompt the user to take action or provide input when there is no existing data or content to display.
Visual demonstration of various Empty State patterns for search, applications, development, and errors.
Did you mean:
Start your application easily by clicking on the button below.
This feature is under development
Last updated: 4 minutes ago
Quickly copy layout and typography classes for Empty States.
|
Base Container
ux4g-empty-state
|
|
Icon Styling
ux4g-empty-state-icon
|
|
Content Wrapper
ux4g-empty-state-content
|
|
Primary Title
ux4g-title-l-strong
|
|
Secondary Body
ux4g-body-m-default
|
An Empty state screen is used to prompt the user to take action or provide input when there is no existing data or content to display.
Visual demonstration of various Empty State patterns for search, applications, development, and errors.
Did you mean:
Start your application easily by clicking on the button below.
This feature is under development
Last updated: 4 minutes ago
Quickly copy layout and typography classes for Empty States.
|
Base Container
ux4g-empty-state
|
|
Icon Styling
ux4g-empty-state-icon
|
|
Content Wrapper
ux4g-empty-state-content
|
|
Primary Title
ux4g-title-l-strong
|
|
Secondary Body
ux4g-body-m-default
|