Font Awesome Build Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Yoummday Light Yoummday Dark Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Yoummday Light Yoummday Dark Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Component Showcase
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

Actions

  • Button
  • Button Group
  • Button Row
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • File Upload
  • Input
  • Known Date
  • Number Input
  • OTP Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input

Layout

  • Accordion
    • Accordion Item
  • Card
  • Content Header
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Page Header
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Navigation Entry
  • Pagination
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Empty State
  • Progress
  • Progress Bar
  • Progress Ring
  • Progress Ring Group
  • Skeleton
  • Spinner
  • Tag
  • Toast
    • Toast Item
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Zoomable Frame

Data Viz

  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Empty State

  • Examples
  • With an image
  • Alignment
  • Custom graphic size
  • Notes
  • API
  • Importing
  • Attributes & Properties
  • CSS Custom Properties
  • CSS Parts
  • Dependencies
On This Page...
  • Examples
  • With an image
  • Alignment
  • Custom graphic size
  • Notes
  • API
  • Importing
  • Attributes & Properties
  • CSS Custom Properties
  • CSS Parts
  • Dependencies

Empty State

<wa-empty-state>
Experimental added Feedback Since ymmd-0.3

Communicates that a collection or view has no content, with an optional graphic and supporting text.

<wa-empty-state
  icon="mdi:inbox-outline"
  headline="No items yet"
  message="Add your first item to get started."
></wa-empty-state>

Examples

Link to This Section

With an image

Link to This Section

Use image-src instead of icon to display an illustration. The headline becomes the image's alternative text.

<wa-empty-state
  image-src="https://picsum.photos/seed/empty-state/160"
  headline="No results"
  message="Try adjusting your filters."
></wa-empty-state>

Alignment

Link to This Section

Use logical alignment values so the layout follows the document's writing direction.

<wa-empty-state
  alignment="start"
  icon="mdi:inbox-outline"
  headline="Nothing scheduled"
  message="Create an appointment to fill this view."
></wa-empty-state>

Custom graphic size

Link to This Section

The graphic part can resize either an icon or image.

<wa-empty-state class="compact-empty-state" icon="mdi:magnify" headline="No matches"></wa-empty-state>

<style>
  .compact-empty-state::part(graphic) {
    font-size: 2rem;
  }
</style>

Notes

Link to This Section
  • Set either icon or image-src. When both are present, icon takes precedence.
  • Override --wa-empty-state-min-height to change the component's minimum height.
  • The default alignment is center; start and end are also available.

API

Link to This Section

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://cdn.yoummday.com/packages/@yoummday/webawesome/0.5.1/dist/components/empty-state/empty-state.js';

After installing Web Awesome via npm, import this component:

import '@yoummday/webawesome/dist/components/empty-state/empty-state.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/empty-state/empty-state.js';

To import this component for React 18 or below, use the following code:

import WaEmptyState from '@yoummday/webawesome/dist/react/empty-state/index.js';

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

Name Description Reflects
alignment
alignment
Aligns the content using logical directions.
Type 'start' | 'center' | 'end'
Default 'center'
headline
headline
The empty state's headline. It is also used as the image's alternative text.
Type string
Default ''
icon
icon
The name of the Web Awesome icon to show. Takes precedence over imageSrc.
Type string
Default ''
imageSrc
image-src
The URL of an image to show when no icon is set.
Type string
Default ''
message
message
Supporting text displayed below the headline.
Type string
Default ''

CSS Custom Properties

Link to This Section

Learn more about CSS custom properties.

Name Description
--wa-empty-state-min-height
The minimum height of the component.
Default 8rem

CSS Parts

Link to This Section

Learn more about CSS parts.

Name Description CSS selector
empty-state The component's content container. ::part(empty-state)
graphic The wrapper around the icon or image. ::part(graphic)
headline The headline element. ::part(headline)
message The supporting message element. ::part(message)
base An alias for the component's content container. ::part(base)

Dependencies

Link to This Section

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

  • <wa-icon>
Need a hand? Report a bug Ask for help
Go Make Something Awesome
Version 0.5.1 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc