EmptyState

A standardized empty state component for when there is no data to display. Provides helpful context through an icon, title, description, and optional primary and secondary actions to guide users toward next steps.

Import

import { EmptyState } from '@wavebooking/aqua-fusion';

Preview

Loading preview...

Usage

<EmptyState
  icon={<Icon name="AcademicCapIcon" />}
  title="No lessons yet"
  description="Get started by creating your first lesson."
  action={<Button>Create Lesson</Button>}
  secondaryAction={<Button variant="ghost">Learn more</Button>}
/>

Props

PropTypeDefaultDescription
title*string-Main title text.
iconReactNode-Icon displayed above the title.
descriptionstring-Description text shown below the title.
actionReactNode-Primary action element, typically a Button.
secondaryActionReactNode-Secondary action element such as a link or ghost button.
classNamestring-Additional CSS classes for the wrapper.
size'sm' | 'md' | 'lg''md'Size variant controlling padding, icon size, and text sizes.