|
| 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 (preview) |
| 21 | + |
| 22 | +[This article is prerelease documentation and is subject to change.] |
| 23 | + |
| 24 | +A control that shows a graphic representation of a user, team, or entity. |
| 25 | + |
| 26 | +## Description |
| 27 | + |
| 28 | +Use the avatar control to visually represent a user, team, or entity. This control supports both image 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**. |
| 29 | + |
| 30 | +## General |
| 31 | + |
| 32 | +**Name** - The name of the person or entity. Name is used to determine the initials displayed when there's no image and is also used for accessibility. |
| 33 | + |
| 34 | +**Image** – The visual representation for the person or entity. |
| 35 | + |
| 36 | +**Badge** – A small visual decoration added to convey status of the person or entity. |
| 37 | + |
| 38 | +**Visible** - Whether a control appears or is hidden. |
| 39 | + |
| 40 | +## Size and position |
| 41 | + |
| 42 | +**[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). |
| 43 | + |
| 44 | +**[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). |
| 45 | + |
| 46 | +**Width** - The distance between a control's left and right edges. |
| 47 | + |
| 48 | +**Height** - The distance between a control's top and bottom edges. |
| 49 | + |
| 50 | +## Style and theme |
| 51 | + |
| 52 | +**Shape** - Whether the avatar appears with a circular or square shape. |
| 53 | + |
| 54 | +**Appearance** – An avatar can have portions of itself styled for greater emphasis or to be subtle. |
| 55 | + |
| 56 | +The following options are available: |
| 57 | + |
| 58 | +- **Brand**: Uses the modern theme to style the avatar. The Color palette property can be used to override this color scheme. |
| 59 | +- **Neutral**: Uses a grayscale for the initials background to provide a subtle appearance. |
| 60 | +- **Colorful**: Users a color from a predefined set of colors, based on a hash of the provided Name. |
| 61 | + |
| 62 | +**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 the selected Fluent theme. |
| 63 | + |
| 64 | +**Font** - The name of the family of fonts in which text appears. |
| 65 | + |
| 66 | +**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. |
| 67 | + |
| 68 | +**FontColor** - The color of text in a control. |
| 69 | + |
| 70 | +**FontWeight** - The weight of the text in a control: **Bold**, **Lighter**, **Normal**, or **Semibold**. |
| 71 | + |
| 72 | +**FontItalic** - Whether the text in a control is italic. |
| 73 | + |
| 74 | +**FontUnderline** - Whether a line appears under the text that appears on a control. |
| 75 | + |
| 76 | +**FontStrikethrough** - Whether a line appears through the text that appears on a control. |
| 77 | + |
| 78 | +## Additional properties |
| 79 | + |
| 80 | +**Out of office** - Adjusts the Badge icon to show its corresponding "out of office" variant. |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
0 commit comments