Avatar
Avatar is an image that represents a user or organization.
On this page
- @primer/react@36.27.0
- Alpha
- Not reviewed for accessibility
On this page
Import
import {Avatar} from '@primer/react'
Examples
Props
Avatar
Name | Default | Description |
---|---|---|
alt | '' | string Provide alt text when the avatar is used without a name next to it. |
size | 20 | number | { narrow?: number; regular?: number; wide?: number; } The size of the avatar in pixels. |
square | false | boolean If true, the avatar will be square instead of circular. |
sx | SystemStyleObject |