BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atroui/founder-avatar

Founder Avatar

atroui/founder-avatar
FreeComponent

Circular founder portrait with editable CONTENT src.

Install it

npx shadcn@latest add https://atroui.com/r/founder-avatar.json

Source

registry/default/ui/founder-avatar.tsxatroui.com/r/founder-avatar.json
1import Image from "next/image"
2
3import { getBrand } from "@/lib/brand"
4import { cn } from "@/lib/utils"
5
6/** Edit CONTENT to point at your founder portrait in /public. */
7const CONTENT = {
8 /** Path under public/, or absolute URL. Empty falls back to initials. */
9 src: "",
10 initials: "",
11}
12
13const sizeClass = {
14 sm: "size-8 text-[10px]",
15 md: "size-9 text-[11px]",
16 lg: "size-11 text-xs",
17} as const
18
19export type FounderAvatarSize = keyof typeof sizeClass
20
21type FounderAvatarProps = {
22 size?: FounderAvatarSize
23 className?: string
24 src?: string
25 initials?: string
26}
27
28function resolveSrc(src?: string): string {
29 if (src?.trim()) return src.trim()
30 if (CONTENT.src.trim()) return CONTENT.src.trim()
31 if (typeof process !== "undefined" && process.env) {
32 const fromEnv = process.env.NEXT_PUBLIC_FOUNDER_AVATAR?.trim()
33 if (fromEnv) return fromEnv
34 }
35 return ""
36}
37
38function resolveInitials(initials?: string): string {
39 if (initials?.trim()) return initials.trim().slice(0, 2).toUpperCase()
40 if (CONTENT.initials.trim()) return CONTENT.initials.trim().slice(0, 2).toUpperCase()
41 const name = getBrand().name.trim()
42 const parts = name.split(/\s+/).filter(Boolean)
43 if (parts.length >= 2) {
44 return `${parts[0]![0] ?? ""}${parts[1]![0] ?? ""}`.toUpperCase()
45 }
46 return (name.slice(0, 2) || "A").toUpperCase()
47}
48
49/**
50 * Circular founder portrait for signature rows.
51 * Decorative - adjacent text carries the name.
52 */
53export function FounderAvatar({
54 size = "sm",
55 className,
56 src,
57 initials,
58}: FounderAvatarProps) {
59 const image = resolveSrc(src)
60 const label = resolveInitials(initials)
61
62 return (
63 <span
64 aria-hidden
65 className={cn(
66 "relative inline-flex shrink-0 overflow-hidden rounded-full ring-1 ring-black/10 dark:ring-white/15",
67 sizeClass[size],
68 className
69 )}
70 >
71 {image ? (
72 <Image
73 src={image}
74 alt=""
75 width={176}
76 height={176}
77 className="size-full object-cover object-[center_25%]"
78 sizes="44px"
79 />
80 ) : (
81 <span className="flex size-full items-center justify-center bg-brand/20 font-semibold tracking-wide text-brand">
82 {label}
83 </span>
84 )}
85 </span>
86 )
87}

What it pulls in

npm packages

  • next

Other registry items

  • @atroui/utils
  • @atroui/brand

Files it writes

  • registry/default/ui/founder-avatar.tsx

Facts

Registry
atroui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

atroui.com atroui/atroui on GitHub Raw registry item This item as JSON

More from atroui

All 82 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
BreadcrumbsbreadcrumbsatrouiComponentsFree2 deps
ButtonbuttonatrouiComponentsFree2 deps
CardcardatrouiComponentsFreeno deps
Fade Infade-inatrouiComponentsFree1 dep
Form Selectform-selectatrouiComponentsFree2 deps
LogologoatrouiComponentsFreeno deps
Mockup Framemockup-frameatrouiComponentsFreeno deps
ProseproseatrouiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex