Package-level declarations

JengaReactionBar: a positive and a negative reaction button side by side.

Types

Link copied to clipboard

The reaction a JengaReactionBar shows as chosen.

Link copied to clipboard
class JengaReactionBarColors(val buttonContainer: Color, val buttonContent: Color, val selectedContainer: Color = buttonContainer, val selectedContent: Color = buttonContent)

Resolved colors for a JengaReactionBar's buttons. Override via JengaReactionBarDefaults.colors. The selected colors default to the unselected ones, so a hand-built set shows no selection until they are given.

Link copied to clipboard

Defaults and token mappings for JengaReactionBar.

Functions

Link copied to clipboard
fun JengaReactionBar(onPositive: () -> Unit, onNegative: () -> Unit, modifier: Modifier = Modifier, selected: JengaReaction? = null, positiveContentDescription: String? = null, negativeContentDescription: String? = null, positiveIcon: ImageVector = JengaTheme.icons.thumbsUp, negativeIcon: ImageVector = JengaTheme.icons.thumbsDown, colors: JengaReactionBarColors = JengaReactionBarDefaults.colors(), action: @Composable () -> Unit? = null)

A per-item feedback row: a positive and a negative round tonal button, then an optional trailing action (e.g. an "Add" button). Replaces walls of feedback chips with two clear one-tap affordances. Generic: the icons and the action are yours; defaults are thumbs up/down.