Y2K UI

Empty

An empty state placeholder for when no data is available.

empty-demo.app

No results found

Try adjusting your search terms or filters.

Installation

terminal.sh
npx y2kui add empty

Usage

import { Empty } from "@/components/ui/empty"

<Empty
  icon={<InboxIcon />}
  title="No messages"
  description="You have no unread messages."
  action={<Button>New message</Button>}
/>

Props

PropTypeDefaultDescription
iconReactNode—Icon displayed above the title.
titleReactNode—Primary heading text.
descriptionReactNode—Supporting description.
actionReactNode—Call-to-action element.
childrenReactNode—Additional custom content.
classNamestring—Additional Tailwind classes.

On this page