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

c8e543bd0db13d6f9f8d8c8cd7cc85e52d0a7542
wotaku/docs/.vitepress/theme/components/CardField.vue history · blame · raw

32 lines · 943 bytes

 1<!--
 2  Copyright (c) 2024 taskylizard
 3
 4  Licensed under the Apache License, Version 2.0 (the "License");
 5  you may not use this file except in compliance with the License.
 6  You may obtain a copy of the License at
 7
 8  http://www.apache.org/licenses/LICENSE-2.0
 9
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15-->
16<script setup lang="ts">
17defineProps<{
18  icon: string
19  iconClass?: string
20}>()
21</script>
22
23<template>
24  <div class="g-[12px] mb-[8px] flex items-center">
25    <span class="flex items-center">
26      <span class="size-6" :class="[icon, iconClass]" />
27      <div class="ml-2 text-sm text-$vp-c-text-2">
28        <slot />
29      </div>
30    </span>
31  </div>
32</template>