HTML

Define static HTML using Univeral apps.

You can define static HTML using New-UDHtml. This cmdlet does not create React components but rather allows you to define static HTML. Any valid HTML string is supported.

The following creates an unordered list.

New-UDHtml -Markup "<ul><li>First</li><li>Second</li><li>Third</li></ul>"

Modifying the <head> tag

You can use the New-UDHelmet component to add new tags to the <head> of the HTML document. This is useful for loading custom JavaScript or CSS libraries.

New-UDHelmet -Tag 'script' -Attributes @{
    src = 'https://unpkg.com/[email protected]/dist/mermaid.min.js'
} 

API

Last updated

Was this helpful?