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

1d594b8125759e9b6f222801d7eb9441948ac23c
wotaku/docs/.vitepress/theme/components/CardField.vue
taskylizard hello world, again319b2575cd 1 year ago

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>
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