BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Pure UI/avatar

Avatar

pure-ui/avatar
FreeComponent

An easily stylable avatar component.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/MusKRI/pure-ui/main/public/r/avatar.json

Source

src/registry/pure-ui/ui/avatar/index.tsxraw.githubusercontent.com/MusKRI/pure-ui/main/public/r/avatar.json
1"use client";
2
3import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
4
5import { cn } from "@/lib/classes";
6
7export interface AvatarProps extends AvatarPrimitive.Root.Props {}
8
9function Avatar({ className, ...props }: AvatarProps) {
10 return (
11 <AvatarPrimitive.Root
12 className={cn(
13 "inline-flex size-10 shrink-0 select-none items-center justify-center overflow-hidden rounded-full bg-muted align-middle font-medium text-xs",
14 className
15 )}
16 data-slot="avatar"
17 {...props}
18 />
19 );
20}
21
22export interface AvatarImageProps extends AvatarPrimitive.Image.Props {}
23
24function AvatarImage({ className, ...props }: AvatarImageProps) {
25 return (
26 <AvatarPrimitive.Image
27 className={cn("size-full object-cover", className)}
28 data-slot="avatar-image"
29 {...props}
30 />
31 );
32}
33
34export interface AvatarFallbackProps extends AvatarPrimitive.Fallback.Props {}
35
36function AvatarFallback({ className, ...props }: AvatarFallbackProps) {
37 return (
38 <AvatarPrimitive.Fallback
39 className={cn(
40 "flex size-full items-center justify-center rounded-full bg-muted",
41 className
42 )}
43 data-slot="avatar-fallback"
44 {...props}
45 />
46 );
47}
48
49export { Avatar, AvatarImage, AvatarFallback };

What it pulls in

npm packages

  • clsx
  • tailwind-merge
  • @base-ui/react

Other registry items

  • classes

Files it writes

  • src/registry/pure-ui/ui/avatar/index.tsx

Facts

Registry
Pure UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

pure.kam-ui.com MusKRI/pure-ui on GitHub Raw registry item This item as JSON

More from Pure UI

All 291 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionPure UIComponentsFree4 deps
BadgebadgePure UIComponentsFree4 deps
ButtonbuttonPure UIComponentsFree4 deps
Button Groupbutton-groupPure UIComponentsFree4 deps
CalendarcalendarPure UIComponentsFree4 deps
CardcardPure UIComponentsFree2 deps
CheckboxcheckboxPure UIComponentsFree4 deps
CollapsiblecollapsiblePure UIComponentsFree3 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex