Title goes here
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
Empty states explain why content is missing and guide users to a next action.
Includes icon, message, and both secondary/primary actions.
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
Use when iconography does not add useful context.
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
Provide only one label to render just that action button.
Use boxed to toggle between boxed and unboxed presentation.
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
Import the empty state component in your module or standalone component:
import-empty-state.ts
Copy code
Use a clear title, concise description, and a meaningful primary action.
my.component.html
Copy code
Hide the icon for compact layouts or text-only contexts.
my.component.html
Copy code
Set [boxed]="false" to remove outer padding, border, and background.
my.component.html
Copy code
Hide action button for passive informational states.
my.component.html
Copy code
Property | Type | Default | Required | Description |
|---|---|---|---|---|
string | - | Yes | Heading shown as the primary message | |
string | - | No | Supporting description shown below the title | |
string | 'vd-icon-placeholder' | No | Icon class rendered in the icon container | |
boolean | true | No | Show or hide the icon container | |
boolean | true | No | When true, renders padded boxed container with border/background. When false, removes padding, border and background | |
string | '' | No | Primary button label. Visible only when label is provided | |
string | '' | No | Secondary button label. Visible only when label is provided |
Property | Type | Description |
|---|---|---|
EventEmitter<void> | Emitted when the primary action button is clicked | |
EventEmitter<void> | Emitted when the secondary action button is clicked |
Customize the empty state props in this section
Nothing more exciting happening here in terms of content, but just filling up the space to make it look representative.
empty-state.component.html
Copy code