alpha

@Stable
fun alpha(alpha: Float = 1.0f, focusedAlpha: Float = alpha, hoveredAlpha: Float = alpha, pressedAlpha: Float = alpha, selectedAlpha: Float = alpha, disabledAlpha: Float = 0.6f, focusedSelectedAlpha: Float = focusedAlpha, pressedSelectedAlpha: Float = pressedAlpha, hoveredSelectedAlpha: Float = hoveredAlpha, focusedDisabledAlpha: Float = disabledAlpha, pressedDisabledAlpha: Float = disabledAlpha, hoveredDisabledAlpha: Float = disabledAlpha): Alpha

Creates an Alpha instance with configurable alpha values for different interaction states.

Parameters

alpha

The default alpha value.

focusedAlpha

The alpha when the element is focused.

hoveredAlpha

The alpha when the element is hovered.

pressedAlpha

The alpha when the element is pressed.

selectedAlpha

The alpha when the element is selected.

disabledAlpha

The alpha when the element is disabled.

focusedSelectedAlpha

The alpha when the element is both focused and selected.

pressedSelectedAlpha

The alpha when the element is both pressed and selected.

hoveredSelectedAlpha

The alpha when the element is both hovered and selected.

focusedDisabledAlpha

The alpha when the element is both focused and disabled.

pressedDisabledAlpha

The alpha when the element is both pressed and disabled.

hoveredDisabledAlpha

The alpha when the element is both hovered and disabled.