For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDStyle

Style a component with CSS styles.

Synopsis

Style a component with CSS styles.

Syntax

New-UDStyle [-Id <String>] -Style <String> [-Tag <String>] [-Content <ScriptBlock>] [<CommonParameters>]

    New-UDStyle [-Id <String>] -Sx <Hashtable> [-Component <String>] [-Tag <String>] [-Content <ScriptBlock>] [<CommonParameters>]

Description

Style a component with CSS styles.

Parameters

-Id

The ID of this component.

Required?                    false
Position?                    named
Default value                ([Guid]::NewGuid())
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-Style

The CSS style to apply

-Sx

A hashtable of theme-aware CSS properties.

-Component

The root component to apply the Sx component to.

-Tag

The outer HTML tag to use.

-Content

The content of this style.

Outputs

-------------------------- EXAMPLE 1 --------------------------

Last updated

Was this helpful?