# Expansion Panel

**Expansion panels contain creation flows and allow lightweight editing of an element.**

An expansion panel is a lightweight container that may either stand alone or be connected to a larger surface, such as a card.

## Simple Expansion Panel

![](https://3638551245-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6jY7sXTmhiAIMGYw_m%2F-MAgIXnpx3G0qAuPkohe%2F-MAgKGvS8_6sb1DZC_yR%2Fimage.png?alt=media\&token=47bcab65-c35b-4ca7-9e58-e3e6ccb79aab)

```powershell
New-UDExpansionPanelGroup -Children {
    New-UDExpansionPanel -Title "Hello" -Children {}

    New-UDExpansionPanel -Title "Hello" -Id 'expContent' -Children {
        New-UDElement -Tag 'div' -Content { "Hello" }
    }
}
```

## API

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