Skip to content

Commit bdfe93c

Browse files
committed
docs(ui): update Avatar changeset for compound API
1 parent a3034c9 commit bdfe93c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.changeset/mosaic-avatar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@clerk/ui': minor
33
---
44

5-
Add a new Mosaic `Avatar` component (StyleX) with `shape` (`circle` | `square`) and `size` (`lg` | `md` | `sm` | `xs`) props. Renders an image when `src` is set, otherwise its children as a fallback.
5+
Add a new Mosaic `Avatar` compound component (StyleX). `Avatar` owns `shape` (`circle` | `square`) and `size` (`lg` | `md` | `sm` | `xs`); compose `AvatarImage` (renders once the image loads) and `AvatarFallback` (shown while the image is pending or has failed, with an optional `delayMs`) inside it.

0 commit comments

Comments
 (0)