Magoo Component UI logo Magoo Component UI
← Catalog

Rating Slider

rating-slider molecule experimental

A range slider with a floating value bubble above the thumb for score, rating and NPS-style inputs.

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
5
High
9

Props

NameTypeReq
label string
min string
max string
value string ✓
fill_pct string ✓
bubble_left string ✓

Related components

How to use

The initial fill and bubble position are rendered from the precomputed fill_pct/bubble_left props so the component looks correct with no JavaScript (and in screenshots). behavior.js then recomputes the percentage live from the range input's min/max/value on every input event, repositions the fill, thumb and bubble, updates the bubble text, and dispatches a bubbling CustomEvent "rating:change" with { value }. The portable self-init needs no props object.

Use cases

form-controlinput WCAG AA SEO 15 dir: both ai-generated