mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
79 lines
2.3 KiB
TypeScript
79 lines
2.3 KiB
TypeScript
import { Plus } from "lucide-react"
|
|
|
|
import {
|
|
Avatar,
|
|
AvatarFallback,
|
|
AvatarImage,
|
|
} from "@/registry/new-york-v4/ui/avatar"
|
|
import { Button } from "@/registry/new-york-v4/ui/button"
|
|
import {
|
|
Item,
|
|
ItemActions,
|
|
ItemContent,
|
|
ItemDescription,
|
|
ItemMedia,
|
|
ItemTitle,
|
|
} from "@/registry/new-york-v4/ui/item"
|
|
|
|
export function ItemAvatar() {
|
|
return (
|
|
<div className="flex w-full max-w-lg flex-col gap-6">
|
|
<Item variant="outline" className="hidden">
|
|
<ItemMedia>
|
|
<Avatar className="size-10">
|
|
<AvatarImage src="https://github.com/maxleiter.png" />
|
|
<AvatarFallback>LR</AvatarFallback>
|
|
</Avatar>
|
|
</ItemMedia>
|
|
<ItemContent>
|
|
<ItemTitle>Max Leiter</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="flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background *: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.</ItemDescription>
|
|
</ItemContent>
|
|
<ItemActions>
|
|
<Button size="sm" variant="outline">
|
|
Invite
|
|
</Button>
|
|
</ItemActions>
|
|
</Item>
|
|
</div>
|
|
)
|
|
}
|