> 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/de/apps/components/surfaces/card.md).

# Card

**Karten enthalten Inhalte und Aktionen zu einem einzelnen Thema.**

Karten sind Oberflächen, die Inhalte und Aktionen zu einem einzelnen Thema darstellen. Sie sollten leicht nach relevanten und handlungsrelevanten Informationen zu überblicken sein. Elemente wie Text und Bilder sollten so darauf platziert werden, dass die Hierarchie klar erkennbar ist.

## Einfache Karte

Obwohl Karten mehrere Aktionen, UI-Steuerelemente und ein Überlaufmenü unterstützen können, sollten Sie sich zurückhalten und daran denken, dass Karten Einstiegspunkte zu komplexeren und detaillierteren Informationen sind.

![](/files/9OcDgTWnhK0ntzuw2km7)

```powershell
New-UDCard -Title 'Simple Card' -Content {
    "This is some content"
}
```

## Erweiterte Karte

Sie können die Cmdlets für Body, Header, Footer und Expand verwenden, um erweiterte Karten zu erstellen. Das folgende Beispiel erstellt eine Karte mit verschiedenen Funktionen basierend auf einer Hyper-V-VM.

```powershell
$Header = New-UDCardHeader -Avatar (New-UDAvatar -Content { "R" } -Sx @{ backgroundColor = "#f44336" }) -Action (New-UDIconButton -Icon (New-UDIcon -Icon 'EllipsisVertical')) -Title 'Shrimp and Chorizo Paella' -SubHeader 'September 14, 2016';
$Media = New-UDCardMedia -Image 'https://mui.com/static/images/cards/paella.jpg'
$Body = New-UDCardBody -Content {
    New-UDTypography -Text ' This impressive paella is a perfect party dish and a fun meal to cook together with your guests. Add 1 cup of frozen peas along with the mussels, if you like.' -Sx @{
        color = 'text.secondary'
    } -Variant body2
}
$Footer = New-UDCardFooter -Content {
    New-UDIconButton -Icon (New-UDIcon -Icon 'Heart')
    New-UDIconButton -Icon (New-UDIcon -Icon 'ShareAlt')
}
$Expand = New-UDCardExpand -Content {
    $Description = @"
    Heat oil in a (14- to 16-inch) paella pan or a large, deep skillet over
    medium-high heat. Add chicken, shrimp and chorizo, and cook, stirring
    occasionally until lightly browned, 6 to 8 minutes. Transfer shrimp to a
    large plate and set aside, leaving chicken and chorizo in the pan. Add
    pimentón, bay leaves, garlic, tomatoes, onion, salt and pepper, and cook,
    stirring often until thickened and fragrant, about 10 minutes. Add
    saffron broth and remaining 4 1/2 cups chicken broth; bring to a boil.
    New-UDTypography -Text $Description
}
New-UDCard -Header $Header -Media $Media -Body $Body -Footer $Footer -Expand $Expand -Sx @{
    maxWidth = 345
    border   = '2px solid #f0f2f5'
}
```

<figure><img src="/files/6AcaEI7YJmZRtSlnYWCM" alt=""><figcaption></figcaption></figure>

## API

* [New-UDCard](/powershell-universal/de/powershell-befehle/new-udcard.md)
* [New-UDCardBody](/powershell-universal/de/powershell-befehle/new-udcardbody.md)
* [New-UDCardExpand](/powershell-universal/de/powershell-befehle/new-udcardexpand.md)
* [New-UDCardFooter](/powershell-universal/de/powershell-befehle/new-udcardfooter.md)
* [New-UDCardHeader](/powershell-universal/de/powershell-befehle/new-udcardheader.md)
* [New-UDCardMedia](/powershell-universal/de/powershell-befehle/new-udcardmedia.md)

## Siehe auch

* [Devolutions Academy – Ein Layout zu Ihrer Anwendung hinzufügen](https://academy.devolutions.net/student/path/3465905/activity/5612257)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/de/apps/components/surfaces/card.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
