GitHubGitHub
← All components
Feedback / component

Empty state

A teaching empty state with icon, explanation, and primary or secondary actions.

InformationalActionable

No invoices

Invoices appear here once a customer is billed.

<EmptyState title="No invoices" description="Invoices appear here once a customer is billed." />

Installation

pnpm add @chanrg/4ui

Import the stylesheet once, at the root of your app:

import '@chanrg/4ui/styles.css';

Usage

import { EmptyState } from '@chanrg/4ui';<EmptyState title="No invoices" description="Invoices appear here once a customer is billed." />

API reference

Props

PropTypeDefaultDescription
titlestringrequiredWhat is empty.
descriptionstring''What the user can do next.

CSS variables

VariableDescription
--4ui-surfacePrimary component surface.
--4ui-textPrimary foreground color.
--4ui-borderDefault control and panel border.

Accessibility

  • Actions remain real caller-provided controls.

Dependencies

No runtime component dependencies.