BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gymnopedies/avatar

Avatar

gymnopedies/avatar
FreeComponent

Avatar — gymnopédies-themed shadcn primitive.

Install it

npx shadcn@latest add https://gymnopedies.shoota.work/r/avatar.json

Source

src/components/ui/avatar.tsxgymnopedies.shoota.work/r/avatar.json
1import * as React from "react"
2import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar"
3
4import { cn } from "@/lib/utils"
5
6function Avatar({
7 className,
8 size = "default",
9 ...props
10}: AvatarPrimitive.Root.Props & {
11 size?: "default" | "sm" | "lg"
12}) {
13 return (
14 <AvatarPrimitive.Root
15 data-slot="avatar"
16 data-size={size}
17 className={cn(
18 "group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten",
19 className
20 )}
21 {...props}
22 />
23 )
24}
25
26function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props) {
27 return (
28 <AvatarPrimitive.Image
29 data-slot="avatar-image"
30 className={cn(
31 "aspect-square size-full rounded-full object-cover",
32 className
33 )}
34 {...props}
35 />
36 )
37}
38
39function AvatarFallback({
40 className,
41 ...props
42}: AvatarPrimitive.Fallback.Props) {
43 return (
44 <AvatarPrimitive.Fallback
45 data-slot="avatar-fallback"
46 className={cn(
47 "flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs",
48 className
49 )}
50 {...props}
51 />
52 )
53}
54
55function AvatarBadge({ className, ...props }: React.ComponentProps<"span">) {
56 return (
57 <span
58 data-slot="avatar-badge"
59 className={cn(
60 "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none",
61 "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden",
62 "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2",
63 "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2",
64 className
65 )}
66 {...props}
67 />
68 )
69}
70
71function AvatarGroup({ className, ...props }: React.ComponentProps<"div">) {
72 return (
73 <div
74 data-slot="avatar-group"
75 className={cn(
76 "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background",
77 className
78 )}
79 {...props}
80 />
81 )
82}
83
84function AvatarGroupCount({
85 className,
86 ...props
87}: React.ComponentProps<"div">) {
88 return (
89 <div
90 data-slot="avatar-group-count"
91// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • https://gymnopedies.shoota.work/r/utils.json

Files it writes

  • src/components/ui/avatar.tsx

Facts

Registry
gymnopedies
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

gymnopedies.shoota.work shoota/gymnopedies on GitHub Raw registry item This item as JSON

More from gymnopedies

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiongymnopediesComponentsFree2 deps
AlertalertgymnopediesComponentsFree1 dep
Alert Dialogalert-dialoggymnopediesComponentsFree1 dep
ArticlearticlegymnopediesComponentsFreeno deps
Aspect Ratioaspect-ratiogymnopediesComponentsFreeno deps
BadgebadgegymnopediesComponentsFree2 deps
BreadcrumbbreadcrumbgymnopediesComponentsFree2 deps
ButtonbuttongymnopediesComponentsFree2 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