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