Skip to content

feat: update avatar component#151

Merged
mehdibha merged 10 commits intomainfrom
refactor/avatar-component
Mar 11, 2026
Merged

feat: update avatar component#151
mehdibha merged 10 commits intomainfrom
refactor/avatar-component

Conversation

@mehdibha
Copy link
Owner

Summary

  • refactor avatar component
  • removed AvatarPlaceholder
  • Added AvatarBadge and AvatarGroupCount

mehdibha and others added 10 commits March 11, 2026 13:53
…k-only support

- add hasImage/setHasImage context to track AvatarImage mount state
- fix AvatarFallback to show when no AvatarImage is present or on error
- fix AvatarPlaceholder to only show when AvatarImage is mounted and loading
- update avatar/index.tsx to use createDynamicComponent pattern
- add missing AvatarBadgeProps and AvatarGroupCountProps to types.ts
- add missing AvatarFallback to account-menu, invite-members, and homepage
- add API references for all avatar sub-components in docs
- remove misleading react-aria link from avatar.mdx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The V generic on VariantsMap and createDynamicComponent was unused
(_V was prefixed with underscore and the record key was always string).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…g loading

Follow base-ui's approach where fallback displays whenever image status
is not "loaded", eliminating the need for a separate placeholder component
and hasImage context tracking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ensures workspace dependencies like starter-themes are built before
typecheck runs, so dist type declarations are available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…enerated files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dotui Ready Ready Preview, Comment Mar 11, 2026 3:34pm

@mehdibha mehdibha merged commit 1736478 into main Mar 11, 2026
16 of 17 checks passed
@github-actions github-actions bot added documentation Improvements or additions to documentation area: www labels Mar 11, 2026
@mehdibha mehdibha deleted the refactor/avatar-component branch March 11, 2026 15:34
@changeset-bot
Copy link

changeset-bot bot commented Mar 11, 2026

⚠️ No Changeset found

Latest commit: 6082c31

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: www documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant