For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDAvatar

Synopsis

Creates a new Avatar.

Syntax

New-UDAvatar [[-Id] <String>] [[-Image] <String>] [[-Alt] <String>] [[-ClassName] <String>] [[-Variant] <String>] [[-Sx] <Object>] [[-Children] <ScriptBlock>] [<CommonParameters>]

Description

Creates a new Avatar. An avatar is typically an image of a user.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

Required?                    false
Position?                    1
Default value                ([Guid]::NewGuid()).ToString()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Image

The URL of an image to show in the avatar.

-Alt

The alt text to assign to the avatar.

-ClassName

Classes to assign to the avatar component.

-Variant

The variant type of the avatar. Valid values are: "square", "rounded"

-Sx

The sx property allows you to define custom CSS styles that will be applied to the component.

-Children

The content to display within the avatar.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Basic avatar

Displays a basic avatar with an image.

Example 2: Square avatar

Displays a square avatar with an image.

Example 3: Avatar with text

Displays an avatar with text and custom CSS styles.

Example 4: Avatar group

Displays a group of avatars.

Example 5: Sizes

Displays a group of avatars with different sizes.

Example 6: Icons

Displays an avatar with an icon.

Example 7: Fallback

Displays an avatar with a fallback to a broken image.

Example 8: Badge

Displays an avatar with a badge.

Last updated

Was this helpful?