BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/empty

empty

agentmesh/empty
FreeComponent

shadcn/ui publishes no description for this item.

Live preview

live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/empty.json

Source

registry/base-vega/ui/empty.tsxraw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/empty.json
1import { cva, type VariantProps } from "class-variance-authority"
2
3import { cn } from "@/registry/base-vega/lib/utils"
4
5function Empty({ className, ...props }: React.ComponentProps<"div">) {
6 return (
7 <div
8 data-slot="empty"
9 className={cn(
10 "flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-lg border-dashed p-12 text-center text-balance",
11 className
12 )}
13 {...props}
14 />
15 )
16}
17
18function EmptyHeader({ className, ...props }: React.ComponentProps<"div">) {
19 return (
20 <div
21 data-slot="empty-header"
22 className={cn("flex max-w-sm flex-col items-center gap-2", className)}
23 {...props}
24 />
25 )
26}
27
28const emptyMediaVariants = cva(
29 "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
30 {
31 variants: {
32 variant: {
33 default: "bg-transparent",
34 icon: "flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-6",
35 },
36 },
37 defaultVariants: {
38 variant: "default",
39 },
40 }
41)
42
43function EmptyMedia({
44 className,
45 variant = "default",
46 ...props
47}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>) {
48 return (
49 <div
50 data-slot="empty-icon"
51 data-variant={variant}
52 className={cn(emptyMediaVariants({ variant, className }))}
53 {...props}
54 />
55 )
56}
57
58function EmptyTitle({ className, ...props }: React.ComponentProps<"div">) {
59 return (
60 <div
61 data-slot="empty-title"
62 className={cn(
63 "cn-font-heading text-lg font-medium tracking-tight",
64 className
65 )}
66 {...props}
67 />
68 )
69}
70
71function EmptyDescription({ className, ...props }: React.ComponentProps<"p">) {
72 return (
73 <div
74 data-slot="empty-description"
75 className={cn(
76 "text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
77 className
78 )}
79 {...props}
80 />
81 )
82}
83
84function EmptyContent({ className, ...props }: React.ComponentProps<"div">) {
85 return (
86 <div
87 data-slot="empty-content"
88 className={cn(
89 "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
90 className
91 )}
92 {...props}
93 />
94 )
95}
96
97export {
98 Empty,
99 EmptyHeader,
100 EmptyTitle,
101 EmptyDescription,
102 EmptyContent,
103 EmptyMedia,
104}

Files it writes

  • registry/base-vega/ui/empty.tsx

Facts

Registry
shadcn/ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on shadcn/ui ombhanushaliii/agentmesh on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 201 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFreeno deps
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFreeno deps
avataravatarshadcn/uiComponentsFreeno deps
badgebadgeshadcn/uiComponentsFreeno deps
breadcrumbbreadcrumbshadcn/uiComponentsFreeno deps
buttonbuttonshadcn/uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex