Avatar Size

PreviousNext

avatar-size-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/media/avatar/avatar-size-demo.tsx
import { Avatar } from "@/components/ui/avatar"

const sizes = ["sm", "md", "lg", "xl"] as const
export default function AvatarSizeDemo() {
  return (
    <div className="flex items-end gap-4">
      {sizes.map((size) => (
        <Avatar key={size} size={size} src="https://intentui.com/images/avatar/cobain.jpg" />
      ))}
    </div>
  )
}

Installation

npx shadcn@latest add @intentui/avatar-size-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.