Magoo Component UI logo Magoo Component UI
← Catalog

Testimonial Collector

testimonial-collect organism experimental

A request-a-testimonial card with an interactive star rating, name/role fields, and a message box.

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

Share your experience

Tell us what you liked and how it helped.

ProductReview

Leave a review

How was your recent order? Your review helps other shoppers.

Props

NameTypeReq
heading string
prompt string
name_placeholder string
role_placeholder string
message_placeholder string
submit_label string

Related components

How to use

behavior.js makes the stars interactive: clicking a star writes the rating (0-5) to the root's data-rating attribute and fills every star up to it via the data-active CSS variant, while the star radios update aria-checked. Submitting the form is intercepted (preventDefault) and re-broadcast as a bubbling "testimonial:submit" CustomEvent with { rating, name, role, message }; the host is responsible for validation and storage. Screenshots show the empty (zero-rating) state since behavior does not run there.

Use cases

highlight WCAG AA SEO 40 dir: both ai-generated