Create "Avatar Token" component
Description
Create a token that can be shared in GlFilteredSearch
and in the proposed Token Selector
#798 (comment 352018602).
Usage example
With GlFilteredSearch
With Token Selector
Proposal
Create a token that can be used to display the avatar
+ name
of any user, project or group.
Props
Name | Description | Type | Required? | Default |
---|---|---|---|---|
src |
The URL of the avatar image to display | String |
true |
n/a |
label |
The string to display next to the avatar | String |
true |
n/a |
loading |
Render a spinner in place of the avatar | Boolean |
false |
false |