Skip to content

Nps Component

A slider component for rating

Properties

NameTypeDefaultDescription
minnumber0The minimum value for the slider.
maxnumber10The maximum value for the slider.
valuenumberundefinedThe current value of the slider.

CSS Parts

NameDescription
containerThe container that wraps the component.
dotThe dot that represents the selected value on the slider.
labelThe label displaying the description or value of the slider.
rateThe element that shows the selected rate.

Check this link to learn how to use CSS parts for Nps Component.

Events

NameDescription
valuechangeFired when the rating slider value changes.