---
title: "DropletWidgetBox, DroppyKit"
description: "The box Droppy mounts a widget&#x27;s content in (DroppyKit 1.23.0): the insets once, the full card, the mount&#x27;s environment, no entrance transition and no clicks mid-spring."
canonical: "https://getdroppy.app/docs/droppykit/api/droplet-widget-box"
last-updated: "2026-09-09"
---

# DropletWidgetBox

The box Droppy mounts a widget's content in (DroppyKit 1.23.0): the insets once, the full card, the mount's environment, no entrance transition and no clicks mid-spring.

`@MainActor struct DropletWidgetBox<Content> where Content : View`

The box Droppy mounts a widget's content in (DroppyKit 1.23.0): the insets once, the full card, the mount's environment, no entrance transition and no clicks mid-spring. Droppy wraps every [`ShelfWidgetCompositionProviding`](https://getdroppy.app/docs/droppykit/api/shelf-widget-composition-providing) widget in it; a widget never builds one itself.

Available from DroppyKit 1.23.0.

## Initializers

### init(context:content:)

`@MainActor init(context: ShelfWidgetContext, @ViewBuilder content: () -> Content)`

The box for a classic context.

### init(layout:contentInsets:content:)

`@MainActor init(layout: ShelfWidgetLayout, contentInsets: EdgeInsets, @ViewBuilder content: () -> Content)`

The box for a layout and the insets its clip needs.

## Properties

### body

`@MainActor var body: some View { get }`
