dappPressable

fun Modifier.dappPressable(shape: Shape = RoundedCornerShape(12.dp), enabled: Boolean = true, selected: Boolean = false, pressedScale: Float = 0.96f, onClick: () -> Unit): Modifier

Clickable modifier with Material-3 interaction feedback for the panel's custom-drawn chips and pills (the ones built on Box/Row rather than a Material Button, which already has its own state layers).

Adds, on top of a plain clickable:

  • a state layer — a translucent white overlay whose opacity tracks pressed focused hovered, matching M3's interaction-state guidance;

  • a subtle press scale so a tap reads as a physical press; and

  • a ≥48 dp touch target (minimumInteractiveComponentSize) so small chips stay reachable while their visual stays compact.

This mirrors the host apps' kicksPressable so the SDK's drop-in panels feel identical to a well-built consumer UI. Ripple is intentionally omitted in favour of the overlay, which reads better on the dark glass pills.

Parameters

selected

when true, holds a faint resting overlay so an active chip (e.g. the current network) reads as selected even at rest.