Headless SDK
Every tile below is a real feedback surface built on @usero/sdk/headless. Same submission pipeline, identity, and plugins as the drop-in widget, with zero UI of ours. Tap any of them, it submits to Usero for real.
A classic 1β4 star bar. One tap submits.
const usero = useUseroFeedback({ clientId })
// on click:
usero.submit({ rating })Map a reaction to a rating and tag it with metadata.
usero.submit({
rating,
metadata: { reaction: 'Love it' },
})The simplest binary signal for any surface.
usero.submit({
rating: up ? 4 : 1,
metadata: { vote: up ? 'up' : 'down' },
})A rating-free text box. Just a comment, no stars.
usero.submit({ comment })Rating plus comment in a panel that matches your design system.
usero.submit({ rating, comment })A 0β10 scale bucketed down to a Usero rating.
How likely are you to recommend us?
usero.submit({
rating: npsToRating(score),
metadata: { nps: score },
})Gradient chips that map a mood to a rating.
How was your experience today?
usero.submit({
rating,
metadata: { mood: 'Amazing' },
})A 0β100 slider bucketed into a Usero rating.
usero.submit({
rating: satisfactionToRating(value),
metadata: { satisfaction: value },
})Multi-select tags plus an optional note.
usero.submit({
comment,
metadata: { tags: ['Design', 'Bug'] },
})A FAB that pops a quick reaction popover.
usero.submit({
rating,
metadata: { reaction, source: 'fab' },
})A single tap delight signal, no form needed.
usero.submit({
rating: 4,
metadata: { reaction: 'love' },
})