Uai

feedbackempty-state.tsx

Color theme

component · 13/108

Empty State

A composable blank-slate surface with card, plain, compact, and page variants.

Install

Install manuallyView source on GitHub

Anatomy

  • EmptyState
  • EmptyStateMedia
  • EmptyStateContent
  • EmptyStateHeader
  • EmptyStateTitle
  • EmptyStateDescription
  • EmptyStateActions
  • EmptyStateAction
  • EmptyStateNote

Accessibility6 checks

  • The root is labelled by the composed empty-state title.
  • Static empty content does not announce itself as a live region by default.
  • Button actions default to type button and links retain native anchor semantics.
  • Media meaning remains consumer-authored; decorative icons stay hidden from assistive technology.
  • Long titles and localized descriptions wrap without truncation or horizontal overflow.
  • Card, plain, compact, and page variants preserve the same content and action contract.
canvasvariant="page"feedback
Not-found route

Page not found

The page you’re looking for may have moved or no longer exists.

Error code 404 · Check the address and try again.

Empty state variant

Code example

usage.tsx
"use client";import { ArrowLeft, FolderOpen, Plus } from "lucide-react";import { useState } from "react";import {  EmptyState,  EmptyStateAction,  EmptyStateActions,  EmptyStateContent,  EmptyStateDescription,  EmptyStateHeader,  EmptyStateMedia,  EmptyStateNote,  EmptyStateTitle,  type EmptyStateVariant,} from "@/components/ui/uai/empty-state";export function EmptyStatePreview({ variant = "page" }: { variant?: EmptyStateVariant }) {  const [started, setStarted] = useState(false);  const page = variant === "page";  return (    <div      className={        page          ? "w-full max-w-[760px]"          : variant === "compact"            ? "w-full max-w-[360px]"            : "w-full max-w-[420px]"      }    >      <EmptyState variant={variant}>        <EmptyStateMedia aria-hidden="true">          {page ? "404" : <FolderOpen strokeWidth={1.7} />}        </EmptyStateMedia>        <EmptyStateContent>          <EmptyStateHeader>            <EmptyStateTitle>{page ? "Page not found" : "No projects yet"}</EmptyStateTitle>            <EmptyStateDescription>              {page                ? "The page you’re looking for may have moved or no longer exists."                : "Create a project to organize files, feedback, and release notes."}            </EmptyStateDescription>          </EmptyStateHeader>          <EmptyStateActions>            {page ? (              <>                <EmptyStateAction href="/">                  <ArrowLeft className="size-3.5" strokeWidth={1.9} aria-hidden="true" />                  Back to home                </EmptyStateAction>                <EmptyStateAction emphasis="secondary" href="#components">                  Browse components                </EmptyStateAction>              </>            ) : (              <EmptyStateAction disabled={started} onClick={() => setStarted(true)}>                <Plus className="size-3.5" strokeWidth={1.9} aria-hidden="true" />                {started ? "Creation started" : "Create project"}              </EmptyStateAction>            )}          </EmptyStateActions>          <EmptyStateNote role={!page && started ? "status" : undefined}>            {page              ? "Error code 404 · Check the address and try again."              : started                ? "Project setup is ready for the consuming application."                : "You can invite collaborators after setup."}          </EmptyStateNote>        </EmptyStateContent>      </EmptyState>    </div>  );}

Manual installation

empty-state.tsx

Loading component source…

esc
ThinkingAI
MessageAI
CitationAI
AttachmentAI
Tool CallAI
Response StatusAI
Run SummaryAI
Conversation ThreadAI · Block
Research SessionAI · Block
File AnalysisAI · Block
Agent RunAI · Block
Approval CardFeedback
Empty StateFeedback
Status BannerFeedback
Progress SummaryFeedback
Inline FeedbackFeedback
Confirmation DialogFeedback
Activity TimelineFeedback
Skeleton GroupFeedback
Prompt ComposerForms
Form FieldForms
Search FieldForms
Filter BarForms
File UploadForms
Date Range PickerForms
Form Error SummaryForms
Unsaved Changes BarForms
Step IndicatorForms
Task ListData Display
Data Table ToolbarData Display
Metric CardData Display
Description ListData Display
Comparison TableData Display
Kanban BoardData Display
Calendar ViewData Display
Audit LogData Display
App HeaderNavigation
App SidebarNavigation
Breadcrumb TrailNavigation
Page TabsNavigation
Command MenuNavigation
Split PaneNavigation
Sign-in CardAuthentication
Sign-up CardAuthentication
Password RecoveryAuthentication
Code VerificationAuthentication · Block
Onboarding WizardAuthentication · Block
Workspace SetupAuthentication · Block
Coupon FieldCommerce
Quantity PickerCommerce
Cart ItemCommerce
Price SummaryCommerce
Order StatusCommerce
Product DetailCommerce · Block
Product ListingCommerce · Block
Cart DrawerCommerce · Block
CheckoutCommerce · Block
Order TrackingCommerce · Block
Subscription ManagementCommerce · Block
Announcement BarMarketing
Pricing ToggleMarketing
Testimonial CardMarketing
Product GalleryMarketing
Trust PanelMarketing
Newsletter FormMarketing
Hero SectionMarketing · Block
Feature ShowcaseMarketing · Block
Pricing SectionMarketing · Block
Testimonials SectionMarketing · Block
FAQ SectionMarketing · Block
Call to ActionMarketing · Block
Waitlist SectionMarketing · Block
Contact SectionMarketing · Block
Author CardContent
CommentContent
Reaction BarContent
Share MenuContent
Changelog EntryContent
Article PageContent · Block
Documentation PageContent · Block
Changelog PageContent · Block
Comment ThreadContent · Block
Community FeedContent · Block
Public ProfileContent · Block
Map FrameMaps
Map ControlsMaps
Map MarkerMaps
Map LegendMaps
Place CardMaps
Route SummaryMaps
Dashboard ShellApplication · Block
Settings PageApplication · Block
Profile PageApplication · Block
Team ManagementApplication · Block
Notification CenterApplication · Block
Billing PortalApplication · Block
Search ResultsApplication · Block
Resource ManagerOperations · Block
Data ExplorerOperations · Block
Import WorkflowOperations · Block
Approval QueueOperations · Block
Audit Log ViewerOperations · Block
Incident DashboardOperations · Block
Report BuilderOperations · Block
Document FieldBrazil
CEP FieldBrazil
Pix PaymentBrazil
Installment PickerBrazil