---
title: "ZIndexScope"
description: "An interface that introduces the zIndex property to a Style receiver scope."
type: "interface"
lastmod: "2026-05-20T01:13:53.389985Z"
---
## API Reference

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface ZIndexScope
```

An interface that introduces the [zIndex](/jetpack-compose/androidx.compose.ui/ui/modifiers/zIndex) property to a [Style](/jetpack-compose/androidx.compose.foundation/foundation/interfaces/Style) receiver scope.

## Functions

### zIndex

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

Sets the Z-index of the component. Higher Z-index components are drawn on top of lower
Z-index components within the same parent. This affects drawing order, not layout.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The Z-index value. |
