Avatar/avatar-square-

PreviousNext

A avatar/avatar-square- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/avatar/avatar-square-6.tsx
import { VerifiedIcon } from "lucide-react";

import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

export const title = "Avatar with Verification Check";

const Example = () => (
  <div className="relative w-fit">
    <Avatar className="rounded-lg">
      <AvatarImage
        alt="@haydenbleasel"
        src="https://github.com/haydenbleasel.png"
      />
      <AvatarFallback className="rounded-lg">HB</AvatarFallback>
    </Avatar>
    <span className="absolute -right-1 -bottom-1 flex size-4 items-center justify-center rounded-full bg-background">
      <VerifiedIcon className="size-full fill-blue-500 text-white" />
    </span>
  </div>
);

export default Example;

Installation

npx shadcn@latest add @shadcnblocks/avatar-avatar-square-6

Usage

import { AvatarAvatarSquare6 } from "@/components/avatar-avatar-square-6"
<AvatarAvatarSquare6 />