diff --git a/docs/app/components/content/ComponentCode.vue b/docs/app/components/content/ComponentCode.vue index e9b93e86..b26f1610 100644 --- a/docs/app/components/content/ComponentCode.vue +++ b/docs/app/components/content/ComponentCode.vue @@ -16,6 +16,11 @@ const props = defineProps<{ items?: { [key: string]: string[] } props?: { [key: string]: any } slots?: { [key: string]: any } + /** + * Whether to format the code with Prettier + * @defaultValue false + */ + prettier?: boolean }>() const route = useRoute() @@ -85,23 +90,26 @@ const code = computed(() => {