Skip to content

Commit

Permalink
Update Avatar props (#2352)
Browse files Browse the repository at this point in the history
* avatar accepts null text

* update generated stories

* changeset

* Update spotty-ghosts-play.md
  • Loading branch information
TheSonOfThomp committed Jun 25, 2024
1 parent c270d20 commit 051f02f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/spotty-ghosts-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/avatar': patch
---

Avatar `text` prop can now be `null` even when `format === 'text'`, allowing for a more seamless integration with the `getInitials` function. If `text === null`, the Avatar will fall back to `Icon` format.

0 comments on commit 051f02f

Please sign in to comment.