Avatar/avatar-square-

PreviousNext

A avatar/avatar-square- example

Docs
shadcnblocksblock

Preview

Loading preview…
code/example/avatar/avatar-square-1.tsx
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";

export const title = "Avatar";

const Example = () => (
  <Avatar className="rounded-lg">
    <AvatarImage
      alt="@haydenbleasel"
      src="https://github.com/haydenbleasel.png"
    />
    <AvatarFallback className="rounded-lg">HB</AvatarFallback>
  </Avatar>
);

export default Example;

Installation

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

Usage

import { AvatarAvatarSquare1 } from "@/components/avatar-avatar-square-1"
<AvatarAvatarSquare1 />