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