Usage
TheVEmptyState component provides a user-friendly way to communicate when content is unavailable.
With Icon
Display an icon in the empty state:With Image
Use a custom image:With Action
Add a call-to-action button:With Link
Make the action button navigate:Justify Content
Control the alignment:Custom Size
Adjust the icon/image size:Props
Large text displayed at the top of the empty state
Title text for the empty state
Descriptive text providing context
Icon to display in the empty state
Image source URL to display instead of an icon
Color applied to the icon and action button
Background color of the empty state container
Text for the action button
Creates an anchor link for the action button
Router link destination for the action button
Horizontal alignment of the content
Size of the icon or image. Defaults to 96 for icons, 200 for images
Maximum width of the text content
Width of the entire component
Height of the entire component
Specify a theme for this component and all of its children
Slots
The default slot for custom content below the text
Slot to customize the headline content
Slot to customize the title content
Slot to customize the text content
Slot to customize the icon/image area
Slot to customize the action button area
Events
Emitted when the action button is clicked
Empty states are crucial for good UX. They guide users on what to do next when there’s no content, reducing confusion and improving engagement.