Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLTabStyle

Aliases: New-HTMLTabOption, New-HTMLTabOptions, New-TabOption
Namespace PSWriteHTML
Aliases
New-HTMLTabOption New-HTMLTabOptions New-TabOption

Creates a new HTML tab style with customizable options.

Remarks

This function allows you to define various styling options for HTML tabs, such as font size, color, weight, style, background color, border properties, and more.

Examples

Authored help example

EXAMPLE 1


New-HTMLTabStyle -FontSize "14px" -FontSizeActive "16px" -TextColor "black" -TextColorActive "blue" -FontWeight "normal" -FontWeightActive "bold" -FontStyle "normal" -FontStyleActive "italic" -FontVariant "normal" -FontVariantActive "small-caps" -FontFamily "Arial" -FontFamilyActive "Verdana" -TextDecoration "none" -TextDecorationActive "underline" -BackgroundColor "#f0f0f0" -BackgroundColorActive "#e0e0e0" -BackgroundColorActiveTarget "#d0d0d0" -BorderRadius "5px" -TextTransform "uppercase" -TextTransformActive "lowercase" -SlimTabs -Transition -LinearGradient -RemoveShadow -BorderStyle "solid" -BorderColor "gray" -BorderBottomWidth "1px" -BorderBottomStyle "solid" -BorderBottomColor "gray" -BorderBottomWidthActive "2px" -BorderBottomStyleActive "dashed" -BorderBottomColorActive "blue" -Style "custom" -Align "center" -Wrap "wrap" -Direction "row"
Creates a new HTML tab style with specified options.
        

EXAMPLE 2


New-HTMLTabStyle -FontSize "12px" -FontSizeActive "14px" -TextColor "gray" -TextColorActive "black" -FontWeight "bold" -FontWeightActive "bolder" -FontStyle "italic" -FontStyleActive "oblique" -FontVariant "small-caps" -FontVariantActive "normal" -FontFamily "Verdana" -FontFamilyActive "Arial" -TextDecoration "underline" -TextDecorationActive "none" -BackgroundColor "#e0e0e0" -BackgroundColorActive "#f0f0f0" -BackgroundColorActiveTarget "#d0d0d0" -BorderRadius "10px" -TextTransform "capitalize" -TextTransformActive "uppercase" -SlimTabs -Transition -LinearGradient -RemoveShadow -BorderStyle "dotted" -BorderColor "black" -BorderBottomWidth "2px" -BorderBottomStyle "dashed" -BorderBottomColor "blue" -BorderBottomWidthActive "1px" -BorderBottomStyleActive "solid" -BorderBottomColorActive "gray" -Style "default" -Align "left" -Wrap "nowrap" -Direction "column"
Creates another HTML tab style with different options.
        

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.

Syntax

New-HTMLTabStyle [-Align <left|right|center|justify>] [-AlignContent <flex-start>] [-AlignItems <stretch|flex-start|flex-end|center|baseline>] [-BackgroundColor <String>] [-BackgroundColorActive <String>] [-BackgroundColorActiveTarget <String>] [-BorderBottomColor <String>] [-BorderBottomColorActive <String>] [-BorderBottomStyle <hidden>] [-BorderBottomStyleActive <hidden>] [-BorderBottomWidth <medium|thin|thick>] [-BorderBottomWidthActive <medium|thin|thick>] [-BorderColor <String>] [-BorderRadius <0px>] [-BorderStyle <hidden>] [-Direction <row|row-reverse|column|column-reverse>] [-FontFamily <String>] [-FontFamilyActive <String>] [-FontSize <String>] [-FontSizeActive <String>] [-FontStyle <normal|italic|oblique>] [-FontStyleActive <normal|italic|oblique>] [-FontVariant <normal|small-caps>] [-FontVariantActive <normal|small-caps>] [-FontWeight <normal>] [-FontWeightActive <normal>] [-JustifyContent <flex-start|flex-end|center>] [-LinearGradient] [-RemoveShadow] [-RowElements <Int32>] [-SlimTabs] [-TextColor <String>] [-TextColorActive <String>] [-TextDecoration <line-through|overline|underline>] [-TextDecorationActive <line-through|overline|underline>] [-TextTransform <uppercase|lowercase|capitalize>] [-TextTransformActive <uppercase|lowercase|capitalize>] [-Transition] [-Wrap <wrap|nowrap|wrap-reverse>] [<CommonParameters>]
#
Parameter set: Manual

Parameters

Align String optionalposition: namedpipeline: Falsealiases: AlignTabsvalues: 4
Specifies the alignment of the tabs.
Possible values: left, right, center, justify
AlignContent String optionalposition: namedpipeline: Falsevalues: 6
Possible values: flex-start, flex-end, center, space-between, space-around, stretch
AlignItems String optionalposition: namedpipeline: Falsevalues: 5
Possible values: stretch, flex-start, flex-end, center, baseline
BackgroundColor String optionalposition: namedpipeline: False
Specifies the background color for the tabs.
BackgroundColorActive String optionalposition: namedpipeline: Falsealiases: SelectorColor
Specifies the background color for the active tab.
BackgroundColorActiveTarget String optionalposition: namedpipeline: Falsealiases: SelectorColorTarget
Specifies the background color for the active tab target.
BorderBottomColor String optionalposition: namedpipeline: False
Specifies the bottom border color for the tabs.
BorderBottomColorActive String optionalposition: namedpipeline: False
Specifies the bottom border color for the active tab.
BorderBottomStyle String optionalposition: namedpipeline: Falsevalues: 9
Specifies the bottom border style for the tabs.
Possible values: hidden, dotted, dashed, solid, double, groove, ridge, inset, outset
BorderBottomStyleActive String optionalposition: namedpipeline: Falsevalues: 9
Specifies the bottom border style for the active tab.
Possible values: hidden, dotted, dashed, solid, double, groove, ridge, inset, outset
BorderBottomWidth String optionalposition: namedpipeline: Falsevalues: 3
Specifies the bottom border width for the tabs.
Possible values: medium, thin, thick
BorderBottomWidthActive String optionalposition: namedpipeline: Falsevalues: 3
Specifies the bottom border width for the active tab.
Possible values: medium, thin, thick
BorderColor String optionalposition: namedpipeline: False
Specifies the border color for the tabs.
BorderRadius String optionalposition: namedpipeline: Falsevalues: 6
Specifies the border radius for the tabs.
Possible values: 0px, 5px, 10px, 15px, 20px, 25px
BorderStyle String optionalposition: namedpipeline: Falsevalues: 9
Specifies the border style for the tabs.
Possible values: hidden, dotted, dashed, solid, double, groove, ridge, inset, outset
Direction String optionalposition: namedpipeline: Falsevalues: 4
Specifies the direction of the tabs.
Possible values: row, row-reverse, column, column-reverse
FontFamily String optionalposition: namedpipeline: False
Specifies the font family for the tabs.
FontFamilyActive String optionalposition: namedpipeline: False
Specifies the font family for the active tab.
FontSize String optionalposition: namedpipeline: Falsealiases: TextSize
Specifies the font size for the tabs.
FontSizeActive String optionalposition: namedpipeline: Falsealiases: TextSizeActive
Specifies the font size for the active tab.
FontStyle String optionalposition: namedpipeline: Falsevalues: 3
Specifies the font style for the tabs.
Possible values: normal, italic, oblique
FontStyleActive String optionalposition: namedpipeline: Falsevalues: 3
Specifies the font style for the active tab.
Possible values: normal, italic, oblique
FontVariant String optionalposition: namedpipeline: Falsevalues: 2
Specifies the font variant for the tabs.
Possible values: normal, small-caps
FontVariantActive String optionalposition: namedpipeline: Falsevalues: 2
Specifies the font variant for the active tab.
Possible values: normal, small-caps
FontWeight String optionalposition: namedpipeline: Falsevalues: 13
Specifies the font weight for the tabs.
Possible values: normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900
FontWeightActive String optionalposition: namedpipeline: Falsevalues: 13
Specifies the font weight for the active tab.
Possible values: normal, bold, bolder, lighter, 100, 200, 300, 400, 500, 600, 700, 800, 900
JustifyContent String optionalposition: namedpipeline: Falsevalues: 3
Possible values: flex-start, flex-end, center
LinearGradient SwitchParameter optionalposition: namedpipeline: False
Indicates whether to use linear gradients.
RemoveShadow SwitchParameter optionalposition: namedpipeline: False
Indicates whether to remove shadows.
RowElements Int32 optionalposition: namedpipeline: False
SlimTabs SwitchParameter optionalposition: namedpipeline: False
Indicates whether to use slim tabs.
TextColor String optionalposition: namedpipeline: False
Specifies the text color for the tabs.
TextColorActive String optionalposition: namedpipeline: False
Specifies the text color for the active tab.
TextDecoration String optionalposition: namedpipeline: Falsevalues: 3
Specifies the text decoration for the tabs.
Possible values: line-through, overline, underline
TextDecorationActive String optionalposition: namedpipeline: Falsevalues: 3
Specifies the text decoration for the active tab.
Possible values: line-through, overline, underline
TextTransform String optionalposition: namedpipeline: Falsevalues: 3
Specifies the text transformation for the tabs.
Possible values: uppercase, lowercase, capitalize
TextTransformActive String optionalposition: namedpipeline: Falsevalues: 3
Specifies the text transformation for the active tab.
Possible values: uppercase, lowercase, capitalize
Transition SwitchParameter optionalposition: namedpipeline: False
Indicates whether to apply transitions.
Wrap String optionalposition: namedpipeline: Falsevalues: 3
Specifies the wrapping behavior of the tabs.
Possible values: wrap, nowrap, wrap-reverse
New-HTMLTabStyle [-Align <left|right|center|justify>] [-AlignContent <flex-start>] [-AlignItems <stretch|flex-start|flex-end|center|baseline>] [-Direction <row|row-reverse|column|column-reverse>] [-JustifyContent <flex-start|flex-end|center>] [-RowElements <Int32>] [-Style <String>] [-Wrap <wrap|nowrap|wrap-reverse>] [<CommonParameters>]
#
Parameter set: Styled

Parameters

Align String optionalposition: namedpipeline: Falsealiases: AlignTabsvalues: 4
Specifies the alignment of the tabs.
Possible values: left, right, center, justify
AlignContent String optionalposition: namedpipeline: Falsevalues: 6
Possible values: flex-start, flex-end, center, space-between, space-around, stretch
AlignItems String optionalposition: namedpipeline: Falsevalues: 5
Possible values: stretch, flex-start, flex-end, center, baseline
Direction String optionalposition: namedpipeline: Falsevalues: 4
Specifies the direction of the tabs.
Possible values: row, row-reverse, column, column-reverse
JustifyContent String optionalposition: namedpipeline: Falsevalues: 3
Possible values: flex-start, flex-end, center
RowElements Int32 optionalposition: namedpipeline: False
Style String optionalposition: namedpipeline: False
Specifies a custom style for the tabs.
Wrap String optionalposition: namedpipeline: Falsevalues: 3
Specifies the wrapping behavior of the tabs.
Possible values: wrap, nowrap, wrap-reverse