Skip to content

Commit

Permalink
feat: add contentClass to easier customisation via tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
annacv committed Nov 21, 2024
1 parent 493b6bd commit 95602e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/x-components/src/components/base-slider.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="x-base-slider">
<div ref="slider" class="x-base-slider__nouislider" />
<div ref="slider" class="x-base-slider__nouislider" :class="contentClass" />
<div class="x-base-slider__selected">
<!--
@slot Default selected range rendering. This slot will be used by default for rendering
Expand Down Expand Up @@ -49,6 +49,11 @@
modelValue: {
type: Object as PropType<{ min: number; max: number }>,
required: true
},
/** Class to be able to customize slider styles. */
contentClass: {
type: String || Array || Record<string, any>,
default: ''
}
},
/**
Expand Down

0 comments on commit 95602e9

Please sign in to comment.