Empty

Render an empty state using the Empty component.

class-variance-authority

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/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

EmptyMedia

PropTypeDefault
variantdefault,icondefault