Magoo Component UI logo Magoo Component UI
← Catalog

NPS Survey

nps-survey organism experimental

A Net Promoter Score survey with a 0-10 recommend scale and an optional follow-up reason.

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

How likely are you to recommend us to a friend or colleague?

Not likely Very likely
RatedWithFollowup

How likely are you to recommend us to a friend or colleague?

Not likely Very likely

Props

NameTypeReq
question string
value string
follow_up boolean

Related components

How to use

The selected number is highlighted purely by the root's data-value attribute through group-data variants, so the initial value renders in screenshots with no JavaScript. behavior.js sets data-value on click (clearing any previous selection), keeps aria-checked in sync, and dispatches a bubbling "nps:rate" CustomEvent with { score } as an integer. The portable self-init reads no props object.

Use cases

highlightlist-item WCAG AA SEO 20 dir: both ai-generated