mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-11-03 03:18:52 +00:00
Squash merge of shadcn-ui/ui main branch into hanzo/ui, bringing in: - [email protected] through [email protected] releases - New apps/v4 directory structure - Registry system improvements and MCP server - Framework support (Vue, Svelte, React Native) - New templates (vite-app, monorepo-next, laravel) - Zod 4 compatibility (scoped override for zod@>4) - Test fixture corrections for alias resolution All 867 merge conflicts resolved preserving Hanzo customizations. 1020/1020 shadcn tests pass.
17 lines
1.4 KiB
JSON
17 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "empty-avatar",
|
|
"registryDependencies": [
|
|
"empty",
|
|
"button",
|
|
"avatar"
|
|
],
|
|
"files": [
|
|
{
|
|
"path": "registry/new-york-v4/examples/empty-avatar.tsx",
|
|
"content": "import {\n Avatar,\n AvatarFallback,\n AvatarImage,\n} from \"@/registry/new-york-v4/ui/avatar\"\nimport { Button } from \"@/registry/new-york-v4/ui/button\"\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/registry/new-york-v4/ui/empty\"\n\nexport default function EmptyAvatar() {\n return (\n <Empty>\n <EmptyHeader>\n <EmptyMedia variant=\"default\">\n <Avatar className=\"size-12\">\n <AvatarImage\n src=\"https://github.com/shadcn.png\"\n className=\"grayscale\"\n />\n <AvatarFallback>LR</AvatarFallback>\n </Avatar>\n </EmptyMedia>\n <EmptyTitle>User Offline</EmptyTitle>\n <EmptyDescription>\n This user is currently offline. You can leave a message to notify them\n or try again later.\n </EmptyDescription>\n </EmptyHeader>\n <EmptyContent>\n <Button size=\"sm\">Leave Message</Button>\n </EmptyContent>\n </Empty>\n )\n}\n",
|
|
"type": "registry:example"
|
|
}
|
|
],
|
|
"type": "registry:example"
|
|
} |