GitHubAvatar
Optimized avatar component that loads smaller images based on the configured size
Internal Component
This component is intended solely for use within GitHub and is not available for external use.React
draft
Props
GitHubAvatar
| Name | Default | Description |
|---|---|---|
size | anySets the width and height of the avatar. | |
square | booleanSets the shape of the avatar to a square if true. If false, the avatar will be circular. | |
src Required | stringURL of the avatar image. | |
alt | stringProvide alt text when the Avatar is used without the user's name next to it. | |
className | stringAdditional class name. |