@empathyco/x-components
Version:
Empathy X Components
71 lines (64 loc) • 1.92 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [BaseSlider](./x-components.baseslider.md)
## BaseSlider variable
This component implements a range slider and prints the selected values. It receives a threshold prop to set the limits and uses v-model to get and set the selected values.
It makes use of the nouslider library
**Signature:**
```typescript
_default: import("vue").DefineComponent<{
threshold: {
type: PropType<{
min: number;
max: number;
}>;
default: () => {
min: number;
max: number;
};
};
modelValue: {
type: PropType<{
min: number;
max: number;
}>;
required: true;
};
contentClass: {
type: StringConstructor;
default: string;
};
}, {
slider: import("vue").Ref<HTMLElement | undefined>;
rangeSelected: import("vue").ComputedRef<number[]>;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
threshold: {
type: PropType<{
min: number;
max: number;
}>;
default: () => {
min: number;
max: number;
};
};
modelValue: {
type: PropType<{
min: number;
max: number;
}>;
required: true;
};
contentClass: {
type: StringConstructor;
default: string;
};
}>> & {
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
}, {
threshold: {
min: number;
max: number;
};
contentClass: string;
}, {}>
```