mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +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.
76 lines
2.3 KiB
TypeScript
76 lines
2.3 KiB
TypeScript
import { Avatar, AvatarFallback, AvatarImage } from "@/examples/base/ui/avatar"
|
|
import { Button } from "@/examples/base/ui/button"
|
|
import {
|
|
Item,
|
|
ItemActions,
|
|
ItemContent,
|
|
ItemDescription,
|
|
ItemMedia,
|
|
ItemTitle,
|
|
} from "@/examples/base/ui/item"
|
|
import { Plus } from "lucide-react"
|
|
|
|
export function ItemAvatar() {
|
|
return (
|
|
<div className="flex w-full max-w-lg flex-col gap-6">
|
|
<Item variant="outline">
|
|
<ItemMedia>
|
|
<Avatar className="size-10">
|
|
<AvatarImage src="https://github.com/evilrabbit.png" />
|
|
<AvatarFallback>ER</AvatarFallback>
|
|
</Avatar>
|
|
</ItemMedia>
|
|
<ItemContent>
|
|
<ItemTitle>Evil Rabbit</ItemTitle>
|
|
<ItemDescription>Last seen 5 months ago</ItemDescription>
|
|
</ItemContent>
|
|
<ItemActions>
|
|
<Button
|
|
size="icon-sm"
|
|
variant="outline"
|
|
className="rounded-full"
|
|
aria-label="Invite"
|
|
>
|
|
<Plus />
|
|
</Button>
|
|
</ItemActions>
|
|
</Item>
|
|
<Item variant="outline">
|
|
<ItemMedia>
|
|
<div className="*:data-[slot=avatar]:ring-background flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:grayscale">
|
|
<Avatar className="hidden sm:flex">
|
|
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
|
|
<AvatarFallback>CN</AvatarFallback>
|
|
</Avatar>
|
|
<Avatar className="hidden sm:flex">
|
|
<AvatarImage
|
|
src="https://github.com/maxleiter.png"
|
|
alt="@maxleiter"
|
|
/>
|
|
<AvatarFallback>LR</AvatarFallback>
|
|
</Avatar>
|
|
<Avatar>
|
|
<AvatarImage
|
|
src="https://github.com/evilrabbit.png"
|
|
alt="@evilrabbit"
|
|
/>
|
|
<AvatarFallback>ER</AvatarFallback>
|
|
</Avatar>
|
|
</div>
|
|
</ItemMedia>
|
|
<ItemContent>
|
|
<ItemTitle>No Team Members</ItemTitle>
|
|
<ItemDescription>
|
|
Invite your team to collaborate on this project.
|
|
</ItemDescription>
|
|
</ItemContent>
|
|
<ItemActions>
|
|
<Button size="sm" variant="outline">
|
|
Invite
|
|
</Button>
|
|
</ItemActions>
|
|
</Item>
|
|
</div>
|
|
)
|
|
}
|