Measured entry
hextaui-avatar
A compact React avatar primitive for profile images and text fallbacks. It ships as a shadcn registry source file rather than a packaged visual system, wraps Radix Avatar, and uses Tailwind utility classes plus a local cn helper backed by clsx and tailwind-merge.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 32.7 KB (98.2 KB build, 65.5 KB baseline) |
| Bare mode | OK |
| Provider required | NO |
| Demo used | written from the component source API |
Verdict
A sensible low-level avatar for React teams already comfortable owning registry code. It covers image and fallback states cleanly, but advanced identity UI such as groups, status indicators, and editing remains application work.
Use it if
- You need a circular profile image with an initials fallback when loading fails.
- Your React interface already uses Tailwind utilities and a shared cn helper.
- You want Radix behavior while retaining direct control of the component source.
Skip it if
- You need a full avatar group, presence badge, upload flow, or profile menu out of the box.
- Your project avoids Tailwind utility classes or source-copied registry components.
- You cannot add Radix Avatar and the class-merging utilities to your dependency set.
Install
| Declared dependencies | @radix-ui/react-avatar, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | builds and mounts without the shadcn-style helpers |
| Provider | no provider required in the harness |
Install Radix Avatar, clsx, and tailwind-merge. Add a cn class-merging helper, configure the at-sign source alias used by the import, and ensure Tailwind processes the copied component file.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
Other published entries for the avatar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neobrutalism-avatarbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 32.7KB
- Bare
- pass
- Prov
- NO
- shadcn-avatarunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 33.0KB
- Bare
- pass
- Prov
- NO
- tripled-native-avatar-expand-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 75.4KB
- Bare
- pass
- Prov
- NO
- tripled-native-avatar-with-name-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 75.5KB
- Bare
- pass
- Prov
- NO
- magicui-avatar-circlesbento
- Renders
- YES
- A11y
- 0
- Gzip
- 26.0KB
- Bare
- fail
- Prov
- NO
- 8bitcn-avatarskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 30.5KB
- Bare
- fail
- Prov
- NO