---
title: "TranslationScope"
description: "An interface that introduces the translation properties to a Style receiver scope."
type: "interface"
lastmod: "2026-05-20T01:13:53.389808Z"
---
## API Reference

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface TranslationScope
```

An interface that introduces the translation properties to a [Style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) receiver scope.

## Functions

### translationX

```kotlin
fun translationX(@FloatRange(from = 0.0) value: Float)
```

Translates (moves) the component horizontally. Positive values move it to the right, negative
values to the left.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The translation amount on the X-axis in pixels. |

### translationY

```kotlin
fun translationY(@FloatRange(from = 0.0) value: Float)
```

Translates (moves) the component vertically. Positive values move it down, negative values
up.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The translation amount on the Y-axis in pixels. |
