Project

PSWriteHTML

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

Stars1018
Forks115
Open issues54
PowerShell Gallery downloads7576901
Releasev1.41.0
Language: PowerShell Updated: 2026-10-03

Curated Examples

Tabs In Line 03

An example script from the PSWriteHTML repository.

Import-Module .\PSWriteHTML.psd1 -Force

New-HTML {
    New-HTMLTabPanel -Orientation horizontal {
        New-HTMLTab -Name 'Standard Top Level Tabs 1' -IconBrands 500px {
            New-HTMLTabPanel {
                New-HTMLTab -Name 'Standard Nested Level Tabs 2.1' -IconBrands 500px {
                    New-HTMLSection -Invisible {
                        New-HTMLSection -HeaderText 'My Section with nested tabs in section' {
                            New-HTMLTabPanel {
                                New-HTMLTab -Name 'Test 5' -IconBrands apple {
                                    New-HTMLTable -DataTable 'test'
                                }
                                New-HTMLTab -Name 'Test 6' -IconRegular address-book -IconColor Red -TextColor Blue {

                                }
                            }
                        }
                        New-HTMLSection -HeaderText 'Another section' {
                            New-HTMLTable -DataTable 'test'
                        }
                    }
                }
                New-HTMLTab -Name 'Standard Nested Level Tabs 2.2' -IconBrands 500px {

                }
            }
        }
        New-HTMLTab -Name 'Standard Top Level Tabs 2' -IconRegular address-book {

        }
    }
} -Online -ShowHTML -FilePath $PSScriptRoot\Example-TabsInLine03.html