This commit is contained in:
marzban-dev
2025-01-28 19:59:35 +03:30
parent 3fa62746db
commit 9ac52ffde8
+19 -3
View File
@@ -1,6 +1,22 @@
<script setup lang="ts">
// type
type Props = {
rate : number
}
// prop
defineProps<Props>();
</script>
<template>
<div class="bg-white flex justify-center items-center gap-2 rounded-full border-[0.5px] border-slate-200 px-4 py-2 typo-p-sm">
<slot />
<Icon name="ci:star-solid" class="**:fill-warning-500 size-4.5" />
<div class="bg-white flex justify-center items-center gap-2 rounded-full border-[0.5px] border-slate-300 px-4 py-2 typo-p-sm">
<Icon name="ci:star-solid" class="**:fill-warning-400 size-4.5" />
<span class="mt-0.5">
{{ rate }}
</span>
</div>
</template>