Skip to main content

Compare API

Properties
NameTypeDefaultDescription
boundarystring"viewport"Constrains the tooltip position. Accepts 'viewport', 'parent', or a CSS selector such as #js-bubbleparent.
colorstring"default"Color of the bubble and tooltip.
labelhtmlTooltip label content. Note: content is not sanitized — sanitize it in your application to prevent XSS.
percentinteger0Percentage position of the bubble along the slider.
placement"top" | "bottom""top"Placement of the label relative to the bubble.
type"base"Type of label style.
distance"small"Distance of the base-type label from the slider line.