New-UDIcon
Synopsis
FontAwesome 6 icons.
Syntax
New-UDIcon [-Id <String>] [-Icon <String>] [-FixedWidth] [-Inverse] [-Rotation <Int32>] [-ClassName <String>] [-Transform <String>] [-Flip <String>] [-Pull <String>] [-ListItem] [-Spin] [-Border] [-Beat] [-Fade] [-Bounce] [-BeatFade] [-Shake] [-Size <String>] [-Style <Hashtable>] [-Title <String>] [-Color <DashboardColor>] [-Solid] [<CommonParameters>]
New-UDIcon [-Id <String>] [-Children <ScriptBlock>] [-ClassName <String>] [-Style <Hashtable>] [<CommonParameters>]Description
Creates a new icon.
Parameters
-Id
The ID of this component.
Required? false
Position? named
Default value ([Guid]::NewGuid()).ToString()
Accept pipeline input? false
Aliases
Accept wildcard characters? false-Icon
The Icon to display. This is a FontAwesome 6 icon name.
-Children
-FixedWidth
Whether to use a fixed with.
-Inverse
Whether to invert the colors of the icon.
-Rotation
The amount of degrees to rotate the icon.
-ClassName
Custom CSS class names to apply to the icon.
-Transform
A CSS transform to apply to the icon.
-Flip
Whether to flip the icon.
-Pull
Whether to flip the icon.
-ListItem
-Spin
Whether the icon should spin.
-Border
Defines the border for this icon.
-Beat
-Fade
-Bounce
-BeatFade
-Shake
-Size
The size of the icon. Valid values are: "xs", "sm", "lg", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x"
-Style
A CSS style to apply to the icon.
-Title
-Color
The color of this icon.
-Solid
Uses the solid icon style.
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 Icon
Displays a user icon.
Example 2: Icon Size
Displays icons in different sizes.
Example 3: Rotated Icon
Rotates an icon 90 degrees.
Example 4: Border Icon
Adds a border to an icon.
Example 5: Color
Adds a color to an icon
Example 6: Flip
Flips an icon horizontally.
Example 7: Spin
Spins an icon.
Example 8: Pulse
Pulses an icon.
Example 9: Custom Icon Set
Uses the css.gg icon set.
Last updated
Was this helpful?