Profile
Show user information based on a user ID.
Name |
Description |
component |
profile |
variant |
picture , name , both |
value |
the user id of the user |
name |
optional string, custom name string to be displayed next to the profile (same as "variant"="both" but custom name |
account |
optional boolean, if true, indicated that this is an account |
options |
options object |
Options
Name |
Description |
size |
size of image |
notInteractive |
boolean, if true, tap on the profile button will result in no action, otherwise it will open user profile |
elevation |
double, use to apply elevation to the button |
spacing |
optional, spacing between profile image and name |
Examples
{
"component": "profile",
"value": "{dispatch.authorId}",
"options": {
"size": "48px",
"notInteractive": true,
"elevation": 1,
"spacing": "15px"
}
}