Empty state
Fills a space with no content yet: says why it is empty and offers the first step.
No projects yet
Create a project to start tracking deals, or import one from a CSV.
Installation
npm i @uisatin/uiimport { EmptyState } from '@uisatin/ui/empty-state'About 10.1 kB of JavaScript, minified and gzipped, with what it imports (React aside). The stylesheet is one file for every component.
npx shadcn@latest add https://uisatin.dev/r/empty-state.jsonAdds empty-state.tsx to components/ui and installs class-variance-authority.
First time with Satin? Set it up once, styles and fonts included, with the installation guide.
API Reference
The EmptyState component is a wrapper around the div that centres an icon, a message and actions.
| Prop | Type | Default |
|---|---|---|
title | string | — |
description | string | — |
icon | ReactNode | — |
actions | ReactNode | — |
border | "ghost""dashed""outline" | "ghost" |
className | string | — |
ref | Ref<HTMLDivElement> | — |
...props | ComponentProps<'div'>Other attributes go to <div> | — |
Accessibility
A plain div with no role. The icon is hidden. The title is a paragraph, not a heading, so add a heading around it if the page outline needs one. actions are your own buttons or links.
Something wrong or missing on this page?
Report a problemSuggest an improvement