diff --git a/src/components/slider/slider-label.ts b/src/components/slider/slider-label.ts index 1f7e5f1f8..28f7d68b4 100644 --- a/src/components/slider/slider-label.ts +++ b/src/components/slider/slider-label.ts @@ -2,6 +2,16 @@ import { LitElement, css } from 'lit'; import { registerComponent } from '../common/definitions/register.js'; +/** + * Allows formatting the values of the slider as string values. + * The text content of the slider labels is used for thumb and tick labels. + * + * @remarks + * When slider labels are provided, the `min`, `max` and `step` properties are automatically + * calculated so that they do not allow values that do not map to the provided labels. + * + * @element igc-slider-label + */ export default class IgcSliderLabelComponent extends LitElement { public static readonly tagName = 'igc-slider-label'; public static override styles = css`