Skip to content
synccn

Empty State

A clear next step for screens with no content yet.

No projects yet

Create a project to start adding components and pages.

Playground

Change the props and copy the code. The controls come from the component's TypeScript types.

No projects yet

Create a project to start inviting your team.

Props

import { EmptyState } from "@/components/ui/empty-state";<EmptyState title="No projects yet" description="Create a project to start inviting your team." />

Installation

$ pnpm dlx shadcn@latest add @synccn/empty-state

First time in this project? Connect synccn with one command.

Usage

import { EmptyState } from "@/components/ui/empty-state";<EmptyState title="No projects yet" action={…} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

  • icon
    React.ElementType

    Icon in the middle.

  • titlerequired
    React.ReactNode

    Heading.

  • description
    React.ReactNode

    What to do next.

  • action
    React.ReactNode

    Button that starts the next step.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

No ARIA roles, key handling or motion settings in its source. It renders plain elements, so its accessibility comes from the content and labels you give it.