Skip to content

Commit dc9811e

Browse files
authored
Create modern-control-avatar.md
Adding docs for the new modern avatar control
1 parent eed6f12 commit dc9811e

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
title: Avatar modern control in Power Apps
3+
description: Learn about the details, properties, and examples of the avatar modern control in Power Apps.
4+
author: jasongre
5+
6+
ms.topic: reference
7+
ms.component: canvas
8+
ms.date: 05/20/2023
9+
ms.subservice: canvas-maker
10+
ms.author: jasongre
11+
12+
13+
ms.reviewer: mkaur
14+
search.audienceType:
15+
- maker
16+
contributors:
17+
- jasongre
18+
19+
---
20+
# Avatar modern control in Power Apps
21+
22+
A control that shows a graphic representation of a user, team, or entity.
23+
24+
## Description
25+
26+
Use the avatar control to visually represent a user, team, or entity. This control supports both image and and initials formats and allows a small badge to be included to help convey status. The key properties for this control are **Name** and **Image**.
27+
28+
## General
29+
30+
**Name** - The name of the person or entity. This is used to determine the initials displayed where there is no image and is also used for accessibility.
31+
32+
**Image** – The visual representation for the person or entity.
33+
34+
**Badge** – A small visual decoration added to convey status of the person or entity.
35+
36+
**Visible** - Whether a control appears or is hidden.
37+
38+
## Size and position
39+
40+
**[X](../properties-size-___location.md)** – The distance between the left edge of a control and the left edge of its parent container (screen if no parent container).
41+
42+
**[Y](../properties-size-___location.md)** – The distance between the top edge of a control and the top edge of the parent container (screen if no parent container).
43+
44+
**Width** - The distance between a control's left and right edges.
45+
46+
**Height** - The distance between a control's top and bottom edges.
47+
48+
## Style and theme
49+
50+
**Shape** - Whether the avatar appears with a circular or square shape.
51+
52+
**Appearance** – A avatar can have portions of itself styled for greater emphasis or to be subtle. Below are the options available:
53+
* Brand: Uses the modern theme to style the avatar. The Color palette property can be used to override this color scheme.
54+
* Neutral:Uses a grayscale for the initials background to provide a subtle appearance.
55+
* Colorful: Users a color from a pre-defined set of colors, based on a hash of the provided Name.
56+
57+
**BasePaletteColor** - The color palette applied to a control. This impacts all surfaces of the control that render a theme color. If the value is null or zero, then the color is driven by selected Fluent theme.
58+
59+
**Font** - The name of the family of fonts in which text appears.
60+
61+
**FontSize** - The font size of the text that appears on a control. If the value is null or zero, then the font size is driven by selected Fluent theme.
62+
63+
**FontColor** - The color of text in a control.
64+
65+
**FontWeight** - The weight of the text in a control: **Bold**, **Lighter**, **Normal**, or **Semibold**.
66+
67+
**FontItalic** - Whether the text in a control is italic.
68+
69+
**FontUnderline** - Whether a line appears under the text that appears on a control.
70+
71+
**FontStrikethrough** - Whether a line appears through the text that appears on a control.
72+
73+
## Additional properties
74+
75+
**Out of office** - Adjusts the Badge icon shown for each option to show "out of office" variants for each option.
76+
77+
78+
79+
80+
81+
82+
83+
84+
85+

0 commit comments

Comments
 (0)