File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/nimiq-vitepress-theme/src/components Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,11 @@ const iconColor = computed(() => {
7878 p-16
7979 >
8080 <template v-if =" layout === ' row' " >
81- <div v-if =" icon" class =" flex-shrink-0" >
82- <div :class =" iconClasses" :style =" iconColor ? `color: ${iconColor}` : undefined" />
83- </div >
81+ <slot name =" icon" >
82+ <div v-if =" icon" class =" flex-shrink-0" >
83+ <div :class =" iconClasses" :style =" iconColor ? `color: ${iconColor}` : undefined" />
84+ </div >
85+ </slot >
8486 <div class =" flex-1 flex flex-col" >
8587 <span v-if =" label" nq-label text-12 mb-4 text =" neutral-700 data-inverted:white/50" data-inverted:mb-8 >{{ label }}</span >
8688 <h2 v-if =" title" font-semibold f-text =" xl data-inverted:2xl" data-inverted:text-white v-html =" title" />
@@ -91,7 +93,9 @@ const iconColor = computed(() => {
9193 <span v-if =" label" nq-label text-12 mb-4 text =" neutral-700 data-inverted:white/50" data-inverted:mb-8 >{{ label }}</span >
9294 <h2 v-if =" title" font-semibold f-text =" xl data-inverted:2xl" data-inverted:text-white v-html =" title" />
9395 <p v-if =" description" text =" data-inverted:white/60" data-inverted:f-text-lg data-inverted:mt-4 v-html =" description" />
94- <div v-if =" icon" :class =" iconClasses" :style =" iconColor ? `color: ${iconColor}` : undefined" />
96+ <slot name =" icon" >
97+ <div v-if =" icon" :class =" iconClasses" :style =" iconColor ? `color: ${iconColor}` : undefined" />
98+ </slot >
9599 </template >
96100 </component >
97101</template >
You can’t perform that action at this time.
0 commit comments