Jenga Swipe To Dismiss
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.
The caller owns the list, so onDismiss should remove the item; the box does not keep the row hidden itself. Reversible removals should pair this with a snackbar Undo at the call site.
Parameters
called once the row is swiped past the dismiss threshold.
the Modifier for the whole row.
whether the swipe gesture is active.
which way the row may be swiped.
the default panel glyph (ignored when background is supplied).
accessibility label for the default action glyph.
the reveal-panel colors; defaults to JengaSwipeToDismissDefaults.colors.
an optional custom reveal panel; fills the row behind content.
the row content shown at rest.