# Badge

## Basic Badge

Examples of badges containing text, using primary and secondary colors. The badge is applied to its children.

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2Fl4swjsO3SLQPyB6VNrQI%2Fimage.png?alt=media\&token=eff447af-db13-4d7e-aea8-e2fc091a5657)

```powershell
  New-UDBadge -BadgeContent { 4 } -Children {
      New-UDIcon -Icon Envelope -Size 2x
  } -Color primary
```

## Color&#x20;

![](https://620394196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1JcgdTkn7CUOMdfsVjOO%2Fuploads%2Fq6OakjjQLwYJYd6v1AtD%2Fimage.png?alt=media\&token=f21464d5-5cf0-4820-adfd-df8bf34204e9)

```powershell
New-UDBadge -BadgeContent { 4 } -Children {
    New-UDIcon -Icon Envelope -Size 2x
} -Color secondary
New-UDBadge -BadgeContent { 4 } -Children {
    New-UDIcon -Icon Envelope -Size 2x
} -Color success
```

## API&#x20;

* [New-UDBadge](https://github.com/ironmansoftware/universal-docs/blob/master/cmdlets/New-UDBadge.txt)
