Skip to content

Commit 4f9a0ba

Browse files
committed
Create ColorSwatch.vue
1 parent 40c3ee6 commit 4f9a0ba

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

components/common/ColorSwatch.vue

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<span
3+
class="inline-block w-8 h-8 rounded-full border-2 border-white shadow"
4+
:style="{ backgroundColor: color }"
5+
:title="title"
6+
></span>
7+
</template>
8+
9+
<script setup>
10+
defineProps({
11+
color: {
12+
type: String,
13+
default: '#3b82f6', // Tailwind blue-500
14+
},
15+
title: {
16+
type: String,
17+
default: '',
18+
},
19+
});
20+
</script>

0 commit comments

Comments
 (0)