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")
}Content copied to clipboard
Parameters
alpha
Transparency level from 0.0 (fully transparent) to 1.0 (fully opaque)
See also
Types
Functions
Link copied to clipboard
Renders the UI builder interface for configuring this modifier. This composable is typically displayed in the Preview Lab control panel.
Link copied to clipboard
Creates a modifier from this field value.
Link copied to clipboard
Combines this modifier field value with another to create a list.