---
title: "alpha"
description: "Draw content with modified alpha that may be less than 1."
type: "function"
lastmod: "2026-05-20T01:13:53.010095Z"
---
## API Reference

### alpha

> Source set: Android

```kotlin
public fun RemoteModifier.alpha(alpha: RemoteFloat): RemoteModifier
```

Draw content with modified alpha that may be less than 1.

#### Parameters

| | |
| --- | --- |
| alpha | the fraction of children's alpha value and must be between `0` and `1`, inclusive. |

## Code Examples
### AlphaSample
```kotlin
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun AlphaSample() {
    RemoteBox(RemoteModifier.size(100.rdp).alpha(0.5f.rf).background(Color.Red))
}
```
