Command
New-HTMLFontIcon
Creates an HTML font icon with specified parameters.
Syntax
New-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconColor <String>]
[-IconSize <Int32>]
[-IconSolid <String>]
[-Name <String>]
[<CommonParameters>]#Parameter set:
FontAwesomeSolidNew-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-Bordered]
[-BorderedCircle]
[-FixedWidth]
[-FlipHorizontal]
[-FlipVertical]
[-IconColor <String>]
[-IconMaterial <String>]
[-IconSize <Int32>]
[-ListIcons]
[-Name <String>]
[-PullLeft]
[-PullRight]
[-Rotate <90| 180| 270>]
[-Spinning]
[-SpinningReverse]
[<CommonParameters>]#Parameter set:
FontMaterialNew-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconColor <String>]
[-IconRegular <String>]
[-IconSize <Int32>]
[-Name <String>]
[<CommonParameters>]#Parameter set:
FontAwesomeRegularNew-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconBrands <String>]
[-IconColor <String>]
[-IconSize <Int32>]
[-Name <String>]
[<CommonParameters>]#Parameter set:
FontAwesomeBrandsDescription
This function generates an HTML font icon based on the provided parameters such as icon size, color, and specific icon set (e.g., FontAwesomeBrands, FontAwesomeRegular, FontAwesomeSolid, FontMaterial).
Examples
Example 1
New-HTMLFontIcon -IconSize 24 -IconColor "red" -IconBrands "fa-github"
Generates an HTML font icon with a size of 24, red color, and the GitHub icon from the FontAwesomeBrands set.Example 2
New-HTMLFontIcon -IconSize 32 -IconColor "blue" -IconRegular "fa-envelope"
Generates an HTML font icon with a size of 32, blue color, and the envelope icon from the FontAwesomeRegular set.Parameters
- -AsCSS SwitchParameter
- -AsHashTable SwitchParameter
- -FixedWidth SwitchParameter
- -IconColor String
- Specifies the color of the icon.
- -IconSize Int32
- Specifies the size of the icon.
- -IconSolid String
- Specifies the icon from the FontAwesomeSolid set.
- -Name String
- -Bordered SwitchParameter
- -BorderedCircle SwitchParameter
- -FlipHorizontal SwitchParameter
- -FlipVertical SwitchParameter
- -IconMaterial String
- FontsMaterialIcon
- -ListIcons SwitchParameter
- for using within UL/LI http://zavoloklom.github.io/material-design-iconic-font/examples.html
- -PullLeft SwitchParameter
- -PullRight SwitchParameter
- -Rotate String
- [parameter(ParameterSetName = "FontMaterial")][switch] $Wobble, [parameter(ParameterSetName = "FontMaterial")][switch] $FadeInLeft, [parameter(ParameterSetName = "FontMaterial")][switch] $Pulse,
- Possible values:
90,180,270 - -Spinning SwitchParameter
- -SpinningReverse SwitchParameter
- -IconRegular String
- Specifies the icon from the FontAwesomeRegular set.
- -IconBrands String
- Specifies the icon from the FontAwesomeBrands set.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.