---
title: "rotation"
description: "Rotates the component around the X-axis, Y-axis and Z-axis (perpendicular to the screen) through its center."
type: "function"
lastmod: "2026-05-20T01:13:53.253079Z"
---
## API Reference

### rotation

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
fun RotationScope.rotation(x: Float, y: Float, z: Float)
```

Rotates the component around the X-axis, Y-axis and Z-axis (perpendicular to the screen) through
its center.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| x | The x-axis rotation angle in degrees. |
| y | The x-axis rotation angle in degrees. |
| z | The x-axis rotation angle in degrees. |
