poshud/pages/switch.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

New-UDPage -Name "Switch" -Icon toggle_on -Content {
    New-UDRow -Columns {
        New-UDColumn -Size 2 -Content {}
        New-UDColumn -Size 10 -Content {
            New-UDHeading -Size 1 -Text "Switches"  -Color $Colors.FontColor

            New-UDParagraph -Content {
                "Switches are special checkboxes used for binary states such as on / off"
            } -Color $Colors.FontColor
            
            New-UDElementExample -Example {
                New-UDSwitch
                New-UDSwitch -OnText "Yes" -OffText "No" -Disabled
            }
        }
    }
}