Home / Function/ Empty() — ui Function Reference

Empty() — ui Function Reference

Architecture documentation for the Empty() function in empty.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  5106fef3_580f_98a3_c3e1_a32717fe6fbc["Empty()"]
  2202e3a4_77c1_64c7_5fb8_a8734dc3d2b4["empty.tsx"]
  5106fef3_580f_98a3_c3e1_a32717fe6fbc -->|defined in| 2202e3a4_77c1_64c7_5fb8_a8734dc3d2b4
  style 5106fef3_580f_98a3_c3e1_a32717fe6fbc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/ui-rtl/empty.tsx lines 4–15

function Empty({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="empty"
      className={cn(
        "flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does Empty() do?
Empty() is a function in the ui codebase, defined in apps/v4/examples/base/ui-rtl/empty.tsx.
Where is Empty() defined?
Empty() is defined in apps/v4/examples/base/ui-rtl/empty.tsx at line 4.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free