From bffc0de27cf2e1b36ef4b0eda320bcbe24f280fb Mon Sep 17 00:00:00 2001 From: Damyan Petev Date: Fri, 7 Mar 2025 13:44:12 +0200 Subject: [PATCH] docs(slider-label): add doc comment and element tag for CEM --- src/components/slider/slider-label.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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`