feat: basic interactive & tags

This commit is contained in:
YunYouJun
2022-04-14 19:59:02 +08:00
parent 2120e79726
commit 1fb7d8db94
15 changed files with 579 additions and 182 deletions

View File

@@ -0,0 +1,16 @@
<script lang="ts" setup>
defineProps<{
active: boolean
}>()
</script>
<template>
<span
class="tag rounded" p="x-2"
border="~ red-200 dark:red-800"
:bg="active ? 'red-500 opacity-90' : 'red-300 opacity-20'"
:text="active ? 'red-100' : 'red-800 dark:red-200'"
>
<slot />
</span>
</template>