Avatar
Avatar is an image that represents a user or organization.
On this page
Work in progressWe are currently transferring the React documentation for Avatar from a different site to this page. To view the original documentation with code examples, please visit the Primer React documentation for Avatar.
On this page
Import
import {Avatar} from '@primer/react'
Examples
Props
Avatar
| Name | Default | Description |
|---|---|---|
alt | '' | stringProvide alt text when the avatar is used without a name next to it. |
size | 20 | numberThe size of the avatar in pixels. |
square | false | booleanIf true, the avatar will be square instead of circular. |
sx | SystemStyleObject |