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

New-UDLink

The Link component allows you to easily customize anchor elements with your theme colors and typography styles.

Synopsis

The Link component allows you to easily customize anchor elements with your theme colors and typography styles.

Syntax

New-UDLink [-Id <String>] [-Url <String>] [-Underline <String>] [-Style <Hashtable>] [-Variant <String>] [-ClassName <String>] [-OpenInNewWindow] [-Text <String>] [-OnClick <Endpoint>] [-Download] [<CommonParameters>]

    New-UDLink [-Id <String>] [-Url <String>] [-Underline <String>] [-Style <Hashtable>] [-Variant <String>] [-ClassName <String>] [-OpenInNewWindow] [-Children <ScriptBlock>] [-OnClick <Endpoint>] [-Download] [<CommonParameters>]

Description

The Link component allows you to easily customize anchor elements with your theme colors and typography styles.

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

-Url

The URL of the link.

-Underline

Whether to underline the link.

-Style

A custom style to apply to the link.

-Variant

The theme variant to apply to the link.

-ClassName

The CSS class to apply to the link.

-Children

The components to link.

-Text

Text to include in the link.

-OnClick

A script block to invoke when clicked.

Outputs

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

Last updated

Was this helpful?