diff --git a/docs/app/components/content/ComponentCode.vue b/docs/app/components/content/ComponentCode.vue index 27c02f19..1ef20c90 100644 --- a/docs/app/components/content/ComponentCode.vue +++ b/docs/app/components/content/ComponentCode.vue @@ -85,7 +85,7 @@ const route = useRoute() const { $prettier } = useNuxtApp() const camelName = camelCase(props.slug ?? route.params.slug?.[route.params.slug.length - 1] ?? '') -const name = `U${upperFirst(camelName)}` +const name = `${props.prose ? 'Prose' : 'U'}${upperFirst(camelName)}` const component = defineAsyncComponent(() => { if (props.pro) { if (props.prefix) {