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

New-UDTypography

Synopsis

Typography allows you to configure and display text.

Syntax

New-UDTypography [-Id <String>] [-Variant <String>] [[-Text] <String>] [-Style <Hashtable>] [-ClassName <String>] [-Align <String>] [-GutterBottom] [-NoWrap] [-Truncate] [-FontWeight <String>] [-Sx <Hashtable>] [<CommonParameters>]

New-UDTypography [-Id <String>] [-Variant <String>] [-Content <ScriptBlock>] [-Style <Hashtable>] [-ClassName <String>] [-Align <String>] [-GutterBottom] [-NoWrap] [-Truncate] [-FontWeight <String>] [-Sx <Hashtable>] [<CommonParameters>]

Description

Creates typography. Typography allows you to configure text within a dashboard.

Parameters

-Id

The ID of the component. It defaults to a random GUID.

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

-Variant

The type of text to display.

-Text

The text to format.

-Content

The content to format.

-Style

A set of CSS styles to apply to the typography.

-ClassName

A CSS className to apply to the typography.

-Align

How to align the typography.

-GutterBottom

The gutter bottom.

-NoWrap

Disables text wrapping.

-Truncate

Disables text wrapping and adds ellipsis for overflow.

-FontWeight

-Sx

Theme-based styling hashtable.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Outputs

Examples

Example 1: Basic Typography

A basic typography component that displays a header.

Example 2: Typography with Style

A typography component that displays a header with a red color.

Example 3: Alignment

A typography component that displays with a centered alignment.

Example 4: Gutter Bottom

A typography component that displays with a space below the text.

Example 5: No Wrap

A typography component that displays with no wrapping.

Example 6: Font Weight

A typography component that displays with a bold font weight.

Example 7: Sx

A typography component that displays with a red color using the theme sx property.

Example 8: Content

A typography component that displays with a button inside of it.

Example 9: Variants

A typography component that displays all of the variants.

Last updated

Was this helpful?