Avatar
Avatar is an image that represents a user or organization.
On this page
v0.1.9BetaNot reviewed for accessibility
Description
Avatar can be used to represent users and organizations on GitHub.
- Use the default circle avatar for users, and the square shape for organizations or any other non-human avatars.
- By default,
Avatarwill render a static<img>. To haveAvatarfunction as a link, set thehrefwhich will wrap the<img>in a<a>. - Set
sizeto update the height and width of theAvatarin pixels. - To stack multiple avatars together, use AvatarStack.
Arguments
| Name | Default | Description |
|---|---|---|
src | N/A | StringThe source url of the avatar image. |
alt | N/A | StringPassed through to alt on img tag. |
size |
| IntegerOne of |
shape |
| SymbolShape of the avatar. One of |
href |
| StringThe URL to link to. If used, component will be wrapped by an |
system_arguments | N/A | Hash |