docs/.vitepress/theme/components/CardField.vue

898d93a4a8f0c0a5edd67b617b3c89910d5045b7
wotaku/docs/.vitepress/theme/components/CardField.vue

24 lines · 643 bytes

 1<!--
 2  All Rights Reserved
 3
 4  Copyright (c) 2025 taskylizard
 5
 6  All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
 7-->
 8<script setup lang="ts">
 9defineProps<{
10  icon: string
11  iconClass?: string
12}>()
13</script>
14
15<template>
16  <div class="g-[12px] mb-[8px] flex items-center">
17    <span class="flex items-center">
18      <span class="size-6" :class="[icon, iconClass]" />
19      <div class="ml-2 text-sm text-$vp-c-text-2">
20        <slot />
21      </div>
22    </span>
23  </div>
24</template>