Package-level declarations
JengaSwipeToDismiss.
Types
Link copied to clipboard
Which way a JengaSwipeToDismiss row can be swiped to trigger its action.
Link copied to clipboard
Resolved colors for a JengaSwipeToDismiss reveal panel.
Link copied to clipboard
object JengaSwipeToDismissDefaults
Defaults and token mappings for JengaSwipeToDismiss.
Functions
Link copied to clipboard
fun JengaSwipeToDismiss(onDismiss: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, direction: JengaSwipeDirection = JengaSwipeDirection.EndToStart, icon: ImageVector = JengaTheme.icons.trash, actionContentDescription: String? = null, colors: JengaSwipeToDismissColors = JengaSwipeToDismissDefaults.colors(), background: @Composable () -> Unit? = null, content: @Composable () -> Unit)
A row wrapper that reveals an action panel as it is swiped and triggers onDismiss once dragged past the threshold: the standard swipe-to-delete gesture. Generic and token-driven: by default it shows a destructive error panel with a icon glyph at the swiped end, but supply your own background slot for a different action.