PauseButton

fun PauseButton(modifier: Modifier = Modifier, onClick: () -> Unit, imageVector: ImageVector = Icons.Outlined.Pause, contentDescription: String = "Current Song is Paused", enabled: Boolean = true, colors: IconButtonColors = IconButtonDefaults.iconButtonColors(), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })

A composable function that renders a Pause button with customizable appearance and behavior.

This function is similar to PlayButton but displays a pause icon.

Parameters

modifier

: Modifier to apply to the button (optional)

onClick

: Function to be called when the button is clicked (required)

imageVector

: The vector asset to be used as the button icon (default: Icons.Outlined.Pause)

contentDescription

: A content description for accessibility (default: "Current Song is Paused")

enabled

: Boolean indicating whether the button is clickable (default: true)

colors

: Colors to be applied to the button (default: IconButtonDefaults.iconButtonColors())

interactionSource

: A MutableInteractionSource object to provide information about user interactions (default: a new instance)