Coupon
fun Coupon(code: String, onCopied: () -> Unit?, modifier: Modifier = Modifier, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Simple component used for highlighting coupons / promo codes.
The code you provide will be converted to uppercase and wrapped in a dashed border.
If you provide onCopied callback, the component will copy the displayed code to clipboard on long click. You should provide adequate feedback to the user in reaction to this action. To disable this functionality, pass null to the parameter.