Skip to content

Commit 501a778

Browse files
committed
Show sliders
1 parent 290e3ff commit 501a778

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

components/common/Checkbox.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<template>
22
<label class="flex items-center space-x-2 cursor-pointer">
33
<input type="checkbox" class="form-checkbox h-4 w-4 text-blue-600 rounded" disabled />
4-
<span class="text-sm"><slot>Checkbox</slot></span>
4+
<span class="text-sm">{{ label }}</span>
55
</label>
66
</template>
77

88
<script setup>
9-
// No logic yet, presentational only
9+
defineProps({
10+
label: {
11+
type: String,
12+
default: '',
13+
},
14+
});
1015
</script>

components/common/RangeSlider.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
<template>
2-
<div class="flex items-center space-x-2 w-full">
2+
<div class="w-full">
33
<input
44
type="range"
55
min="0"
66
max="1000"
77
class="w-full accent-blue-600"
88
disabled
99
/>
10-
<span class="text-sm">kr 0 - kr 1000</span>
10+
<div class="flex justify-between text-sm mt-1">
11+
<span>kr 0</span>
12+
<span>kr 1000</span>
13+
</div>
1114
</div>
1215
</template>
1316

0 commit comments

Comments
 (0)