docs(ComponentCard): preview component only (#302)

This commit is contained in:
Haytham A. Salama
2023-06-22 19:38:04 +03:00
committed by GitHub
parent 8c99b871e2
commit 881f3547f2

View File

@@ -47,7 +47,7 @@
</component>
</div>
<ContentRenderer :value="ast" class="[&>div>pre]:!rounded-t-none" />
<ContentRenderer v-if="!previewOnly" :value="ast" class="[&>div>pre]:!rounded-t-none" />
</div>
</template>
@@ -100,6 +100,10 @@ const props = defineProps({
overflowClass: {
type: String,
default: ''
},
previewOnly: {
type: Boolean,
default: false
}
})