poshud/pages/radio.ps1

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

New-UDPage -Name "Radio" -Icon circle -Content {
    New-UDRow -Columns {
        New-UDColumn -Size 2 -Content {}
        New-UDColumn -Size 10 -Content {
            New-UDHeading -Size 1 -Text "Radios"  -Color $Colors.FontColor

            New-UDParagraph -Content {
                "Radio Buttons are used when the user must make only one selection out of a group of items. "
            } -Color $Colors.FontColor
            
            New-UDElementExample -Example {
                New-UDRadio -Label Red -Checked
                New-UDRadio -Label Yellow 
                New-UDRadio -Label Green -WithGap
                New-UDRadio -Label Brown -Disabled
            }
        }
    }
}