Skip to content
satin

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

Terminal
npm i @uisatin/ui
Import
import { 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.

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.

PropTypeDefault
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.