Empty

Render an empty state using the Empty component.

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/empty.json

Examples


Skeleton

Combine the empty state with a skeleton or spinner to indicate data loading before content appears.

Background

Apply the bg-* and bg-gradient-* utilities to give the empty state a background.

Avatar

Use the EmptyMedia component to showcase an avatar within the empty state.

Multiple Avatars

Use the EmptyMedia component to display multiple avatars representing users, teams, or collaborators within the empty state.

Outline

Enhance the empty state by adding an outline with the border utility class.


API Reference

Empty

The core component for the empty state, used to enclose EmptyHeader and EmptyContent.

PropTypeDefault
classNamestring-

EmptyMedia

The EmptyMedia component displays the visual element of an empty state, such as an icon, image, or avatar.

PropTypeDefault
variantdefault,icondefault
classNamestring-