---
title: widget
framework: swiftui
role: symbol
role_heading: Type Property
path: swiftui/containerbackgroundplacement/widget
---

# widget

The container background placement for a widget.

## Declaration

```swift
static let widget: ContainerBackgroundPlacement
```

## Discussion

Discussion Pass the container background placement to the containerBackground(_:for:) function to configure the background of your widgets.

## See Also

### Getting placements

- [navigation](swiftui/containerbackgroundplacement/navigation.md)
- [tabView](swiftui/containerbackgroundplacement/tabview.md)
