Project

PSWriteHTML

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

Stars 1,023
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.45.0
Language: PowerShell Updated: 2026-11-03
Command

New-HTMLPanelStyle

Module
PSWriteHTML

Creates a new HTML panel style with customizable options.

Syntax

New-HTMLPanelStyle
[-BorderRadius <String>]
[-RemoveShadow]
[-RequestConfiguration]
[<CommonParameters>]
#
Parameter set: Manual

Description

This function creates a new HTML panel style with the ability to set the border radius, remove shadow, and request configuration settings.

Examples

Example 1

New-HTMLPanelStyle -BorderRadius '10px' -RemoveShadow
Creates a new HTML panel style with a border radius of 10px and removes the shadow.

Example 2

New-HTMLPanelStyle -BorderRadius '15px' -RequestConfiguration
Creates a new HTML panel style with a border radius of 15px and requests the configuration settings.

Parameters

-BorderRadius String optional
Specifies the border radius for the HTML panel. Valid values are '0px', '5px', '10px', '15px', '20px', '25px'.
Possible values: 0px, 5px, 10px, 15px, 20px, 25px
-RemoveShadow SwitchParameter optional
Indicates whether to remove the shadow from the HTML panel.
-RequestConfiguration SwitchParameter optional
Specifies whether to request the configuration settings for the HTML panel.

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.