This zero-dependency ES6 module transforms a select with numerical-range values (i.e. 1-5) into a dynamic star rating element.
prebuilt
option'function' !== typeof options.stars
)stars
option which allows you to use custom SVG images for each starclassname
option with the classNames
optioninitialText
option with the tooltip
option