Magoo Component UI logo Magoo Component UI
← Catalog

Feedback Thumbs

feedback-thumbs atom experimental

A compact thumbs up/down control for rating an AI response, with a toggleable selected state.

The width preview needs a screen wider than the chosen width — use a larger device (or a desktop browser) to see the desktop and tablet layouts.

Default
RatedUp

Props

NameTypeReq
value enum ( | up | down)
up_label string
down_label string

Related components

How to use

The selected highlight is driven by the root's data-value attribute through group-data variants, so the up and down selected states render in screenshots with no JavaScript. behavior.js sets or clears data-value on click (re-clicking the active thumb toggles it back to neutral), keeps aria-pressed in sync, and dispatches a bubbling "feedback:rate" CustomEvent with { value }.

Use cases

highlight WCAG AA SEO 10 dir: both ai-generated