Skip to content

RateSlider

The rate slider component.

Importing

ts
import "@tapsioss/web-components/rate-slider";
ts
import { RateSlider } from "@tapsioss/react-components/RateSlider";

Component Usage

html
<tapsi-rate-slider></tapsi-rate-slider>
tsx
<RateSlider />

Properties

NameDescriptionTypeDefault Value
valueThe current value of the input. It is always a string.string""
nameThe HTML name to use in form submission.string""
valuetextDefines the human-readable text alternative of value. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetextstring""
labelDefines a string value that can be used to name input. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelstring""
labelledbyIdentifies the element (or elements) that labels the input. https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-labelledbystring""
maxDefines the maximum value in the range of permitted values. Defaults to "10". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxstring"10"
minDefines the minimum value in the range of permitted values. Defaults to "0". https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#minstring"0"
autofocusIndicates that the element should be focused on page load. https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocusbooleanfalse

Events

NameDescriptionType
changeFired when value changes (Bubbles).Event