Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for avatar badge placement
- Loading branch information
1 parent
5e6c3fd
commit e8f634e
Showing
3 changed files
with
49 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
"@chakra-ui/avatar": minor | ||
"@chakra-ui/theme": patch | ||
--- | ||
|
||
Add support for changing avatar badge placement. | ||
|
||
The badge placement can be set to `top-start`, `top-end`, `bottom-start` or | ||
`bottom-end`. | ||
|
||
```jsx live=false | ||
<Avatar name="Uchiha Itachi" src="https://uinames.com/api/photos/female/18.jpg"> | ||
<AvatarBadge placement="top-start" /> | ||
</Avatar> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e8f634e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chakra-ui-storybook – ./
chakra-ui-storybook-git-main-chakra-ui.vercel.app
storybook.chakra-ui.com
chakra-ui-storybook.vercel.app
chakra-ui-storybook-chakra-ui.vercel.app