Icon and Text in one line

I am not able to create this in UD (screenshot from UA):

image

What I am trying right no is this:

  New-UDParagraph -Content {
     New-UDIcon -Icon check_circle -Color green -Size 3x
     New-UDHeading -Text $Text -Size 6
  }

image

@adam or @leeberg maybe you can tell me how this is implemented in UA?

My current solution is working but feels more like a workaround:

New-UDParagraph -Content {
  New-UDIcon -Icon $Icon -Color $Color
  $Text
}

image

UA isn’t doing much different. $icon is a UDIcon and $StatusDisplay is the text.

 New-UDElement -Tag 'span' -Id $Id -Content  {
   $icon
   ($StatusDisplay)
}  

OK, I am on the right way thinking “in UD” :slight_smile:

1 Like