LyricsLineItem

fun LyricsLineItem(isFocused: Boolean, isRightAligned: Boolean, onLineClicked: () -> Unit, onLinePressed: () -> Unit, blurRadius: () -> Float, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, activeAlpha: Float = 1.0f, inactiveAlpha: Float = 0.4f, blendMode: ERROR CLASS: Symbol not found for BlendMode = BlendMode.SrcOver, content: () -> Unit)

A container for a single line of lyrics, handling common interactions and animations. Features:

  • Scale animation on focus

  • Alpha animation on focus/active state

  • Blur effect

  • Click and long-press handling

Parameters

isFocused

Whether the line is currently the active/focused line.

isRightAligned

Whether the line is right-aligned (e.g., for certain karaoke styles or RTL).

onLineClicked

Callback for click events.

onLinePressed

Callback for long-press events.

blurRadius

Provider for the blur radius (allows animation).

modifier

Modifier for the container.

activeAlpha

Alpha value when active/focused.

inactiveAlpha

Alpha value when inactive.

blendMode

Blend mode for drawing the content.

content

The composable content of the line (text).