# New-NavTopMenu

Creates a new navigation top menu item with customizable options.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new navigation top menu item with customizable options.

## Syntax

```
New-NavTopMenu
[-Href <String>]
[-IconColor <String>]
[-IconSolid <String>]
[-InternalPageID <String>]
[[-MenuItem] <ScriptBlock>]
-Name <String>
[<CommonParameters>]
```

[#](#method-new-navtopmenu-string-string-string-string-scriptblock-string)

Parameter set: `FontAwesomeSolid`

```
New-NavTopMenu
[-Bordered]
[-BorderedCircle]
[-FlipHorizontal]
[-FlipVertical]
[-Href <String>]
[-IconColor <String>]
[-IconMaterial <String>]
[-InternalPageID <String>]
[[-MenuItem] <ScriptBlock>]
-Name <String>
[-PullLeft]
[-PullRight]
[-Rotate <90|180|270>]
[-Spinning]
[-SpinningReverse]
[<CommonParameters>]
```

[#](#member-774a477dc2c224264758bebf)

Parameter set: `FontMaterial`

```
New-NavTopMenu
[-Href <String>]
[-IconColor <String>]
[-IconRegular <String>]
[-InternalPageID <String>]
[[-MenuItem] <ScriptBlock>]
-Name <String>
[<CommonParameters>]
```

[#](#method-new-navtopmenu-string-string-string-string-scriptblock-string-2)

Parameter set: `FontAwesomeRegular`

```
New-NavTopMenu
[-Href <String>]
[-IconBrands <String>]
[-IconColor <String>]
[-InternalPageID <String>]
[[-MenuItem] <ScriptBlock>]
-Name <String>
[<CommonParameters>]
```

[#](#method-new-navtopmenu-string-string-string-string-scriptblock-string-3)

Parameter set: `FontAwesomeBrands`

## Description

The New-NavTopMenu function creates a new navigation top menu item with various customizable options such as icon, name, href, and more.

## Examples

### Example 1

```powershell
New-NavTopMenu -Name "Home" -Href "/home" -IconBrands "fa fa-home" -IconColor "blue"
Creates a new navigation top menu item named "Home" with a home icon from Font Awesome Brands in blue color.
```

### Example 2

```powershell
New-NavTopMenu -Name "About" -Href "/about" -IconRegular "fa fa-info-circle" -IconColor "green"
Creates a new navigation top menu item named "About" with an info circle icon from Font Awesome Regular in green color.
```

## Parameters

**-Href String optional**

Specifies the URL to navigate to when the menu item is clicked.

**-IconColor String optional**

Specifies the color of the icon.

**-IconSolid String optionalsets: FontAwesomeSolid**

ICON SOLID

**-InternalPageID String optional**

Specifies the internal page ID associated with the menu item.

**-MenuItem ScriptBlock optionalposition: 0**

Specifies the script block defining the menu item properties.

**-Name String required**

Specifies the name of the menu item. This parameter is mandatory.

**-Bordered SwitchParameter optionalsets: FontMaterial**

**-BorderedCircle SwitchParameter optionalsets: FontMaterial**

**-FlipHorizontal SwitchParameter optionalsets: FontMaterial**

**-FlipVertical SwitchParameter optionalsets: FontMaterial**

**-IconMaterial String optionalsets: FontMaterial**

FontsMaterialIcon

**-PullLeft SwitchParameter optionalsets: FontMaterial**

**-PullRight SwitchParameter optionalsets: FontMaterial**

**-Rotate String optionalsets: FontMaterial**

Possible values: `90`, `180`, `270`

**-Spinning SwitchParameter optionalsets: FontMaterial**

**-SpinningReverse SwitchParameter optionalsets: FontMaterial**

**-IconRegular String optionalsets: FontAwesomeRegular**

Specifies the icon for the menu item from the Font Awesome Regular collection.

**-IconBrands String optionalsets: FontAwesomeBrands**

Specifies the icon for the menu item from the Font Awesome Brands collection.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:B936AD6996B67AECC16C973ADED24699D889F8F109EA4DD315C912508763CD55 -->
