AlphaModifierFieldValue

Modifier field value for controlling component transparency

Applies alpha blending to make components partially or fully transparent. Essential for creating overlay effects, fade animations, and visual hierarchy. Provides an interactive slider or text input for precise alpha control.

// Semi-transparent overlay
val overlay = ModifierFieldValueList().alpha(0.7f)

// Fade effect
val fadeOut = ModifierFieldValueList().alpha(0.3f)

// Use in component
Box(
modifier = overlay.createModifier()
) {
Text("Transparent content")
}

Parameters

alpha

Transparency level from 0.0 (fully transparent) to 1.0 (fully opaque)

See also

Constructors

Link copied to clipboard
constructor(alpha: Float)

Types

Link copied to clipboard

Factory for creating AlphaModifierFieldValue instances with configurable initial value

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun Builder()

Renders the UI builder interface for configuring this modifier. This composable is typically displayed in the Preview Lab control panel.

Link copied to clipboard
open override fun Modifier.createModifier(): Modifier

Creates a modifier from this field value.

Link copied to clipboard

Combines this modifier field value with another to create a list.