---
title: "ShelfWidgetModeSize, DroppyKit"
description: "One composition&#x27;s size: its card width and its content height (DroppyKit 1.23.0)."
canonical: "https://getdroppy.app/docs/droppykit/api/shelf-widget-mode-size"
last-updated: "2026-09-09"
---

# ShelfWidgetModeSize

One composition's size: its card width and its content height (DroppyKit 1.23.0).

`struct ShelfWidgetModeSize`

Available from DroppyKit 1.23.0.

## Initializers

### init(width:contentHeight:)

`init(width: CGFloat, contentHeight: CGFloat)`

A fixed content height.

### init(width:height:)

`init(width: CGFloat, height: ShelfWidgetModeHeight)`

Any height.

## Properties

### contentHeight

`var contentHeight: CGFloat? { get }`

The fixed content height, or `nil` for a fitting one.

### height

`let height: ShelfWidgetModeHeight`

The content's height.

### initialContentHeight

`var initialContentHeight: CGFloat { get }`

The height the card is sized at before the host has measured a fitting widget: the fixed height, or the fitting range's lower bound.

### width

`let width: CGFloat`

The card's width in points at the Regular shelf size. Alone, the shell never opens narrower than [`shelfMinimumSoloCardWidth(usesNotchStyle:)`](https://getdroppy.app/docs/droppykit/api/droppy-shell-metrics#shelf-minimum-solo-card-width-uses-notch-style); in a row this is a preference the row shares out by weight.
