> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/fr/apps/components/data-display/icon.md).

# Icône

Les icônes [FontAwesome ](https://fontawesome.com/?from=io)peuvent être incluses dans votre application. Les noms d'icônes sont légèrement différents de ceux affichés sur le site web de FontAwesome. Par exemple, si vous souhaitez utiliser l'icône `network-wired`, vous utiliseriez la chaîne suivante.

```powershell
New-UDIcon -Icon 'NetworkWired'
```

## Rechercher une icône

FontAwesome v6 est inclus avec PowerShell Universal. Vous pouvez utiliser `Find-UDIcon` pour effectuer une recherche dans la liste des icônes incluses.

```powershell
Find-UDIcon User
```

{% hint style="warning" %}
L'énumération `UniversalDashboard.FontAwesomeIcons` ne doit pas être utilisée et n'est incluse qu'à des fins de rétrocompatibilité. Beaucoup de ces icônes ne font plus partie de FontAwesome 6.
{% endhint %}

## Icône

Créez des icônes en spécifiant leur nom. Vous pouvez utiliser la référence des icônes ci-dessous pour en trouver.

```powershell
New-UDIcon -Icon 'AddressBook'
```

![](/files/RfXfAGEqyQDmLQZpk6xT)

## Taille

Définissez la taille de l'icône. Les valeurs valides sont : `xs`, `sm`, `lg`, `2x`, `3x`, `4x`, `5x`, `6x`, `7x`, `8x`, `9x`, `10x`

```powershell
    New-UDIcon -Icon 'AddressBook' -Size 'sm'
    New-UDIcon -Icon 'AddressBook' -Size 'lg'
    New-UDIcon -Icon 'AddressBook' -Size '5x'
    New-UDIcon -Icon 'AddressBook' -Size '10x'
```

![](/files/6ws1IxR1VnyK7oLPOSrP)

## Rotation

Faites pivoter les icônes. La valeur représente les degrés de rotation.

```powershell
New-UDIcon -Icon 'AddressBook' -Size '5x' -Rotation 90
```

![](/files/YMC9ZOI5pjUOJiYkeh93)

## Bordure

Ajoutez une bordure à votre icône.

```powershell
New-UDIcon -Icon 'AddressBook' -Size '5x' -Border
```

![](/files/VbDpSq6dhaDIport03M0)

## Style

Appliquez des styles CSS à votre icône.

```powershell
New-UDIcon -Icon 'AddressBook' -Size '5x' -Style @{
    backgroundColor = "red"
}
```

![](/files/8qwLlQusLpKnZGIFnqDs)

## Rechercher visuellement des icônes

```powershell
New-UDTextbox -Id 'txtIconSearch' -Label 'Search' 
New-UDButton -Text 'Search' -OnClick {
    Sync-UDElement -Id 'icons'
}

New-UDElement -tag 'p' -Content {}

New-UDDynamic -Id 'icons' -Content {
    $IconSearch = (Get-UDElement -Id 'txtIconSearch').value
    if ($null -ne $IconSearch -and $IconSearch -ne '')
    {
        $Icons =$Icons = Find-UDIcon -Name $IconSearch
    }

    foreach($icon in $icons) {
        try{
            New-UDChip -Label $icon -Icon (New-UDIcon -Icon $icon)
        }
        catch{
            New-UDChip -Label "$icon Unknown" 
        }
    }
}
```

## Liste complète des icônes

[Cliquez ici pour afficher la liste complète des icônes.](https://gist.github.com/adamdriscoll/8a5d12b0ac5641bc1083bebf921f56fe)

## API

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/fr/apps/components/data-display/icon.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
