docs/.vitepress/theme/components/extrepo/MenuTitle.vue
30 lines · 467 bytes
1<script setup lang="ts">
2defineProps<{
3 icon: string
4 title: string
5}>()
6</script>
7
8<template>
9 <h3 class="ext-menu-title">
10 <span :class="icon" aria-hidden="true" />
11 {{ title }}
12 </h3>
13</template>
14
15<style scoped>
16.ext-menu-title {
17 display: flex;
18 align-items: center;
19 gap: 6px;
20 margin: 0 0 8px;
21 font-size: 13px;
22 font-weight: 600;
23 color: var(--vp-c-text-1);
24}
25
26.ext-menu-title span {
27 font-size: 14px;
28 color: var(--vp-c-text-2);
29}
30</style>