---
title: "scale"
description: "Scales the component uniformly (both horizontally and vertically) around its center pivot point."
type: "function"
lastmod: "2026-05-20T01:13:53.253703Z"
---
## API Reference

### scale

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun ScaleScope.scale(@FloatRange(from = 0.0) value: Float)
```

Scales the component uniformly (both horizontally and vertically) around its center pivot point.

Setting [scale](/jetpack-compose/androidx.compose.foundation/foundation/functions/scale) will override the horizontal scaling set by a previous call to
[ScaleScope.scaleX](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/ScaleScope) and the previous vertical scaling set by calling [ScaleScope.scaleY](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/ScaleScope).

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The scaling factor for both X and Y axes. 1.0f is no scale. |

### scale

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun ScaleScope.scale(@FloatRange(from = 0.0) x: Float, @FloatRange(from = 0.0) y: Float)
```

Scales the component uniformly (both horizontally and vertically) around its center pivot point.

Setting [scale](/jetpack-compose/androidx.compose.foundation/foundation/functions/scale) will override the horizontal scaling set by a previous call to
[ScaleScope.scaleX](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/ScaleScope) and the previous vertical scaling set by calling [ScaleScope.scaleY](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/ScaleScope).

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| x | The scaling factor for X axes. 1.0f is no scale. |
| y | The scaling factor for Y axes. 1.0f is no scale. |
