FeedbackButtons

Thumbs up / thumbs down buttons for collecting inline feedback on AI responses.

import { FeedbackButtons } from "@aetherstack/ui"

Installation

terminal
npx aether-ui add feedback-buttons

Import

import.tsx
import { FeedbackButtons } from "@aetherstack/ui"

Usage

feedbackbuttons.tsx
<FeedbackButtons
  onThumbsUp={() => submitFeedback("positive")}
  onThumbsDown={() => submitFeedback("negative")}
/>

Props

PropTypeDefaultDescription
onThumbsUp() => voidCalled when the thumbs up button is clicked.
onThumbsDown() => voidCalled when the thumbs down button is clicked.
classNamestringAdditional CSS classes.

* Required

Accessibility

  • Each button has an aria-label ('Thumbs up' / 'Thumbs down') for screen reader clarity.
  • Active state is communicated via aria-pressed so assistive technology reflects the selection.