Displaysrc/components/ui/avatar.tsx

Avatar

An image element with fallback content for representing a user.

Preview

CN
ER
CN
LR
ER
+3
PP
CN
LR
ER
CN
CN
CN

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Avatar } from "@/components/ui/avatar"

export function Example() {
  return <Avatar>Avatar</Avatar>
}

API Reference

ExportPurpose
AvatarComposable part exported by `@/components/ui/avatar`.