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-stateFirst 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.ElementTypeIcon in the middle.
- titlerequired
React.ReactNodeHeading.
- description
React.ReactNodeWhat to do next.
- action
React.ReactNodeButton that starts the next step.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
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.