mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +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.
37 lines
987 B
TypeScript
37 lines
987 B
TypeScript
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/radix/ui/avatar"
|
|
import { Button } from "@/examples/radix/ui/button"
|
|
import {
|
|
Empty,
|
|
EmptyContent,
|
|
EmptyDescription,
|
|
EmptyHeader,
|
|
EmptyMedia,
|
|
EmptyTitle,
|
|
} from "@/examples/radix/ui/empty"
|
|
|
|
export default function EmptyAvatar() {
|
|
return (
|
|
<Empty>
|
|
<EmptyHeader>
|
|
<EmptyMedia variant="default">
|
|
<Avatar className="size-12">
|
|
<AvatarImage
|
|
src="https://github.com/shadcn.png"
|
|
className="grayscale"
|
|
/>
|
|
<AvatarFallback>LR</AvatarFallback>
|
|
</Avatar>
|
|
</EmptyMedia>
|
|
<EmptyTitle>User Offline</EmptyTitle>
|
|
<EmptyDescription>
|
|
This user is currently offline. You can leave a message to notify them
|
|
or try again later.
|
|
</EmptyDescription>
|
|
</EmptyHeader>
|
|
<EmptyContent>
|
|
<Button size="sm">Leave Message</Button>
|
|
</EmptyContent>
|
|
</Empty>
|
|
)
|
|
}
|