Avatar
Custom size avatar
Use size prop to set custom size of avatar in pixels.
10px
20px
30px
40px
50px
60px
100px
Component API
Avatar component props.
| Prop | Default | Description |
variant | circle | circle | rounded | squareThe shape of the avatar. |
src | — | string | nullThe source of the avatar image. |
alt | — | stringThe alt text of the avatar. |
badge | null | objectThe badge of the avatar. |
Last updated on