Skip to Content
Kokonut UI

FB-06FeedbackNew, November 28, 2026

Stacked Empty State

An empty list drawn as a blank post on top of two others, fanned out like one post going to several places. The cards spread a little on hover.

Install with
lucide-react

IN USEThis component is used in Postrippl.

Usage

Pass your own title, description and actions. icon takes any Lucide icon for the blue tile on the front card. Without actions it shows the demo's two buttons, so pass actions={null} for none. It renders on the server: no client JavaScript, and the hover is plain CSS.

import { Inbox } from "lucide-react";
import StackedEmptyState from "@/components/kokonutui/stacked-empty-state";
import { Button } from "@/components/ui/button";

export function EmptyInbox() {
  return (
    <StackedEmptyState
      actions={<Button>Connect an inbox</Button>}
      description="Messages from every channel land here."
      icon={Inbox}
      title="Nothing in your inbox"
    />
  );
}

PRODither Reveal Hero and more like it are in Kokonut UI Pro

Installation

Stacked Empty State is a free, open-source React component in the Kokonut UI Feedback collection. Add it with the shadcn CLI, which copies the source into components/kokonutui/stacked-empty-state.tsx, so the code is yours to change.

npx shadcn@latest add @kokonutui/stacked-empty-state

Or add it by hand: install its packages, then copy the source from Copy code above into components/kokonutui/stacked-empty-state.tsx.

npm install lucide-react

Props

icon
LucideIconDefault PenLine

Drawn on the blue tile of the front card.

title
stringDefault "No posts yet"
description
ReactNodeDefault "Write one post and send it to every account yo…
actions
ReactNode

Buttons, primary first. Leave out for the demo's two.

className
string

Extra classes for the root element.

Dependencies

NeedsVersionComes from
lucide-react^0.556.0npm, installed by the CLI
cn from lib/utils.tsshadcn init
React19Your app
Tailwind CSS4Your app

No provider, font or global CSS to set up: the file works as soon as it lands.