Skip to content
Block Kit for React
Esc
↑↓navigate↵open⌘Jpreview
On this page

Feedback buttons element

Thumbs up / thumbs down feedback for an AI-generated message.

feedback_buttons renders a pair of thumbs-up and thumbs-down icon buttons, as seen under an AI agent’s response in Slack. As in Slack, the pair is a radio group labelled “Rating”: the picked thumb stays checked and turns filled, and the arrow keys move between the two. It’s a context_actions block element, so it’s typically placed alongside an icon button rather than in an actions row.

Your AppAPP
onActionInteract with the preview.

Fields

PropType
typestring

Always feedback_buttons.

Typestring
positive_button{ text: PlainTextElement; value: string; accessibility_label?: string }

The thumbs-up button. text is shown as its tooltip and default accessible name.

Type{ text: PlainTextElement; value: string; accessibility_label?: string }
negative_button{ text: PlainTextElement; value: string; accessibility_label?: string }

The thumbs-down button. text is shown as its tooltip and default accessible name.

Type{ text: PlainTextElement; value: string; accessibility_label?: string }
action_id?string

Identifies this action in the interaction payload. Must be unique within the block. Maximum length is 255 characters.

Typestring

Examples

With an accessibility_label

Your AppAPP
onActionInteract with the preview.

Interactivity

Clicking a thumb dispatches a feedback_buttons action carrying that button’s value and text:

{
  "type": "feedback_buttons",
  "action_id": "feedback",
  "block_id": "b1",
  "action_ts": "1706000000.000100",
  "value": "positive",
  "text": { "type": "plain_text", "text": "Good response", "emoji": true }
}

Neither thumb is checked when the block first renders, and the package has no field to preselect one. Every pick sends an action, including picking the thumb that’s already checked, and picking with the arrow keys. Choosing the other thumb moves the check to it. Slack doesn’t record feedback buttons in state.values, and neither does the package.

Last updated on