@@ -32,6 +32,24 @@ import dedent from "ts-dedent";
3232 control: { disable: true },
3333 table: { type: { summary: null } },
3434 },
35+ propLabel: {
36+ name: ' label' ,
37+ description: ' Label for the range input. This prop will be overriden by `label` slot.' ,
38+ control: { type: ' text' },
39+ table: { category: ' props' , type: { summary: ' string' } },
40+ },
41+ propPrefix: {
42+ name: ' prefix' ,
43+ description: ' Element to display before the input. This prop will be overriden by `prefix` slot.' ,
44+ control: { disable: true },
45+ table: { category: ' props' , type: { summary: ' string' } },
46+ },
47+ propSuffix: {
48+ name: ' suffix' ,
49+ description: ' Element to display after the input. This prop will be overriden by `suffix` slot.' ,
50+ control: { disable: true },
51+ table: { category: ' props' , type: { summary: ' string' } },
52+ },
3553 modelValue: {
3654 table: { type: {
3755 summary: ' number | [number, number]' ,
@@ -80,10 +98,15 @@ export const SlotTemplate = (args) => ({
8098 template: `
8199 <Card sectioned>
82100 <template #title>Text color</template>
83- <RangeSlider v-model="rangeValue" v-bind="args">
84- <template #prefix>Hue</template>
85- <template #suffix>{{ rangeValue }}</template>
86- </RangeSlider>
101+ <RangeSlider
102+ v-model="rangeValue"
103+ :min="0"
104+ :max="360"
105+ label="Hue color mix"
106+ output
107+ prefix="Hue"
108+ :suffix="rangeValue"
109+ />
87110 </Card>
88111 ` ,
89112});
@@ -105,10 +128,15 @@ export const SlotTemplate = (args) => ({
105128 code: dedent `
106129 <Card sectioned>
107130 <template #title>Text color</template>
108- <RangeSlider v-model="rangeValue" :min="0" :max="360" label="Hue color mix" output>
109- <template #prefix>Hue</template>
110- <template #suffix>{{ rangeValue }}</template>
111- </RangeSlider>
131+ <RangeSlider
132+ v-model="rangeValue"
133+ :min="0"
134+ :max="360"
135+ label="Hue color mix"
136+ output
137+ prefix="Hue"
138+ :suffix="rangeValue"
139+ />
112140 </Card>\n
113141 <script setup>
114142 const rangeValue = ref(30);
0 commit comments