Remove fixed padding in Card (#230)

How the slot allow use an specific padding, don't need to use fixed p-6. 
This way, we have more personalization
This commit is contained in:
Gabriel Henrique
2023-10-18 13:17:39 -03:00
committed by GitHub
parent d192a693cf
commit 705445b46e

View File

@@ -1,9 +1,7 @@
<template>
<component :is="wrapperType" :href="href" :class="cardClasses">
<img v-if="imgSrc" class="rounded-t-lg" :class="horizontalImageClasses" :src="imgSrc" :alt="imgAlt"/>
<div class="p-6">
<slot />
</div>
</component>
</template>
<script lang="ts" setup>