Button

Universal Dashboard is now a part of PowerShell Universal. This documentation is for reference to the v2 version of Universal Dashboard and is no longer maintained. PowerShell Universal Documentation can be found here.

Button

Contained

New-UDMuButton -Text 'Submit' -Variant contained
Contained Button

Flat

New-UDMuButton -Text 'Submit' -Variant flat
Flat button

Outlined

New-UDMuButton -Text 'Submit' -Variant outlined
Outlined Button

Icons

New-UDMuButton -Text 'Buy' -Variant contained -Icon (New-UDMuIcon -Icon bitcoin -Size '4x')
Icon Button

Full Width

New-UDMuButton -Text 'Submit' -Variant contained -FullWidth
Full Width Button

OnClick Handler

New-UDMuButton -Text 'Submit' -Variant contained -OnClick {
Show-UDToast -Message "You clicked me!" -Position topLeft
}
Button onClick Handler

Custom Colors

New-UDMuButton -Text 'Submit' -Variant contained -Style @{ backgroundColor = "blue"; color = "white" }
Colored Button