Skip to Content
BlocksEmptyStateBlock

EmptyStateBlock

An empty state display with illustration, title, description, and action buttons.

Import

import { EmptyStateBlock } from "@raydenui/ui/blocks";

Usage

No tasks to show

You don't have any pending tasks for today. Add new tasks to track productivity

<EmptyStateBlock illustration="task-templates" title="No tasks to show" description={`You don't have any pending tasks for today.\nAdd new tasks to track productivity`} action={{ label: "New Task", icon: "plus" }} />

No Results Variant

No results found

"Access" did not match any results. Please try again

<EmptyStateBlock illustration="search" illustrationColored={false} title="No results found" description={`"Access" did not match any results.\nPlease try again`} />

Card Variant

<EmptyStateBlock illustration="gallery" variant="card" title="Ready to add some photos?" description={`Tap the button below to upload and\nshare photos with your community`} action={{ label: "Upload Photos", icon: "upload" }} />

Illustration Variants

IllustrationUse Case
task-templatesNo tasks
searchNo search results
galleryNo photos/images
folderEmpty folder
inboxEmpty inbox
notificationsNo notifications
documentsNo documents
usersNo team members
chartNo data/analytics
calendarNo events
cartEmpty cart
bookmarkNo bookmarks
messageNo messages
cloudNo cloud storage
settingsNo configuration
errorGeneral error state
successAction completed
connectionNo internet connection
locationNo location data

Props

PropTypeDefaultDescription
illustrationstring—Illustration name
illustrationColoredbooleantrueUse colored illustration
variant"default" | "card""default"Display variant
titlestring—Title text (required)
descriptionstring—Description text
actionEmptyStateBlockAction—Primary action button
classNamestring—Additional CSS classes

EmptyStateBlockAction

PropTypeRequiredDescription
labelstringYesButton label
iconstringNoIcon name
onClick() => voidNoClick handler

Accessibility

  • Illustrations are decorative (aria-hidden)
  • Action buttons have proper focus states
  • Description text supports multi-line content
Last updated on