Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nek-12 committed Aug 8, 2024
1 parent 26e47e0 commit b0c31cf
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
package pro.respawn.kmmutils.compose.modifier

import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.ui.Modifier
import androidx.compose.ui.semantics.Role

/**
* Add a clickable modifier that has no indication (no ripple)
*/
public fun Modifier.noIndicationClickable(
enabled: Boolean = true,
onClickLabel: String? = null,
role: Role? = null,
interactionSource: MutableInteractionSource? = null,
onClick: () -> Unit,
): Modifier = clickable(
interactionSource = null,
interactionSource = interactionSource,
indication = null,
enabled = enabled,
onClickLabel = onClickLabel,
Expand Down

0 comments on commit b0c31cf

Please sign in to comment.