Styles
UDStyle component for PowerShell Universal
You can apply styles to individual components within apps by using the UDStyle
component. This component will need to be added to your dashboard and is part of the core components included with PowerShell Universal.
Applying a Style
To apply a style to a component or a set of components, you call the New-UDStyle
cmdlet, specify a CSS style and then include the components you wish to style within the -Content
script block.
Overriding Built in Styles
When using a success alert, you will have the .MuiAlert-standardSuccess
class applied to your component. You can override this default style like this.
The resulting alert will be red instead of the default green.
Last updated
Was this helpful?