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

> Source set: Common

```kotlin
@ExperimentalFoundationStyleApi
interface AlphaScope
```

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

## Functions

### alpha

```kotlin
fun alpha(@FloatRange(from = 0.0, to = 1.0) value: Float)
```

Sets the opacity of the component. A value of 1.0f means fully opaque, 0.0f means fully
transparent.

This property is *not* inherited

#### Parameters

| | |
| --- | --- |
| value | The alpha value (0.0f to 1.0f). |
