docs/.vitepress/theme/components/settings/MenuTitle.vue

c17ef94022476d20ed4f43f418b4814a5f223cf0
wotaku/docs/.vitepress/theme/components/settings/MenuTitle.vue
taskylizard wotaku 2bea9706e6c 1 year ago

31 lines · 602 bytes

 1<script setup lang="ts">
 2const props = defineProps<{
 3  title?: string
 4  disabled?: boolean
 5}>()
 6</script>
 7
 8<template>
 9  <h3
10    class="VPNolebaseEnhancedReadabilitiesMenuTitle"
11    :class="{ disabled: !!props.disabled }"
12    text="[14px] $vp-nolebase-enhanced-readabilities-menu-text-color"
13    inline-flex
14    select-none
15    items-center
16    align-middle
17    font-medium
18  >
19    <slot name="icon" />
20    <span v-if="props.title">{{ props.title }}</span>
21    <slot />
22  </h3>
23</template>
24
25<style scoped less>
26.VPNolebaseEnhancedReadabilitiesMenuTitle {
27  &.disabled {
28    opacity: 0.5;
29  }
30}
31</style>
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form