Skip to main content

ExperienceRating

Need storefront configuration?

Use the public API origin, merchant slug, and location ID. Storefront components never receive a Crave API key; register each exact browser origin before making requests.
A feedback widget shown after order completion that lets customers rate their experience with star ratings and optional text feedback.

Preview

Import

Usage

Props

string
required
The order ID to associate the feedback with.
(rating: FeedbackRating) => void
required
Callback fired when the customer submits their rating.
() => void
required
Callback fired when the customer dismisses the rating prompt.

Behavior

  • 5-star rating with tap/click interaction
  • Optional text feedback field appears after rating
  • Category tags for specific feedback (food quality, speed, accuracy)
  • Submits to the analytics events API
  • Only shown once per order