Ballmac UI home

Empty

A responsive empty-state surface with media, concise guidance, and a dedicated action area.

All caught up

New requests will appear here. Invite a teammate to start collaborating.

Installation

$ pnpm dlx shadcn@latest add @ballmac/empty

Usage

import { Empty, EmptyMedia, EmptyTitle, EmptyDescription, EmptyAction } from "@/components/ballmac/empty"

The full example is in the Code tab above.

Examples

States and variants

No results for “quarterly”

Try a different term or clear your filters.

API reference

PropTypeDefault
compact

Reduce vertical space when the empty state sits inside a panel.

booleanfalse

Also accepts the standard attributes of its root element.

Accessibility

KeyAction
Tabreaches actions in the empty state

Use with AI

A responsive empty-state surface with media, concise guidance, and a dedicated action area. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Empty (@ballmac/empty) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Explain why a list has no content
  • Give the next step after a search yields no results

Not for

  • Use a skeleton while loading

Registry JSON: https://ui.ballmac.com/r/empty.json

Credits

Based on shadcn/ui Empty, adapted by Ballmac. Free to use in personal and commercial projects.

npm
None
Registry
shadcn/utils