---
title: "defaultMinSize"
description: "Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the [minWidth] and [minHeight] constraints are only applied when the corresponding dimension has not been constrained by another modifier (e.g."
type: "function"
lastmod: "2026-09-24"
---
## API Reference

### defaultMinSize

> Source set: Android

```kotlin
public fun RemoteModifier.defaultMinSize(
    minWidth: RemoteDp? = null,
    minHeight: RemoteDp? = null,
): RemoteModifier
```

Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the
`minWidth` and `minHeight` constraints are only applied when the corresponding dimension has not
been constrained by another modifier (e.g. [width](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/width/api), [height](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/height/api), [size](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/size/api), or [fillMaxWidth](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/fillMaxWidth/api)).

#### Parameters

| | |
| --- | --- |
| minWidth | The minimum width to be used if width is otherwise unconstrained. |
| minHeight | The minimum height to be used if height is otherwise unconstrained. |
