AIReplyActionsRow

fun AIReplyActionsRow(text: String, actions: AIReplyActions, modifier: Modifier = Modifier, colors: AIReplyActionsColors = AIReplyActionsDefaults.colors(), icons: AIReplyActionsIcons = AIReplyActionsDefaults.icons())

The buttons under a finished reply: copy and share, then regenerate and rate when the app handles them.

Copying puts text on the clipboard and shows a check mark for a moment. Sharing opens the system share sheet with text. Regenerate shows only when AIReplyActions.onRegenerate is set, and the thumbs up and down only when AIReplyActions.onRate is set. The thumb that matches AIReplyActions.rating is filled and reads as selected. Tapping it again takes the rating back.

Parameters

text

The reply's text, which copying and sharing hand on.

actions

What else the person can do with the reply.

modifier

Modifier to be applied to the row.

colors

The palette of the buttons.

icons

The icons of the buttons.