User Image
Displays a user's avatar image or a fallback placeholder based on their handle.
Overview
- Toggles
- grayscale
All options
Source and grayscale
| source \ grayscale | false | true |
|---|---|---|
| userHandle only | J | J |
| userHandle and userImgUrl |
Accessibility
Alt text
When userImgUrl is set, the image uses userHandle as its alt text. Without an image, the avatar shows the first letter of userHandle as text.
Props
| Prop | Type | Required | Description |
|---|---|---|---|
| userHandle | string | Yes | — |
| userImgUrl | string | No | — |
| grayscale | boolean | No | — |