From b340f5f548c2aa38b2036aae19f85705ced55900 Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 28 Jan 2026 18:22:31 +0700 Subject: [PATCH 1/2] Docs: Add FAQ about generic Vue components in CSF Next Documents that generic Vue components work seamlessly with CSF Next by passing the type parameter directly to the component. --- docs/api/csf/csf-next.mdx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/api/csf/csf-next.mdx b/docs/api/csf/csf-next.mdx index 2c64dc702b3b..78babee58f33 100644 --- a/docs/api/csf/csf-next.mdx +++ b/docs/api/csf/csf-next.mdx @@ -542,6 +542,35 @@ While using CSF Next, you can still use the older formats, as long as they are n Yes, the [doc blocks](../../writing-docs/doc-blocks.mdx) used to reference stories in MDX files support the CSF Next format with no changes needed. + + +### How do I use generic Vue components? + +Generic Vue components (using ` +```html + + + +``` + +You can type check SFC files with `vue-tsc` and get editor support in VSCode by installing the official [Vue extension](https://marketplace.visualstudio.com/items?itemName=Vue.volar). + +This setup will add type support for `*.vue` imports to your `*.stories.ts` files, providing the same type safety and autocomplete features. + +[CSF Next](../api/csf/csf-next.mdx) adds support for [Generic Vue components](https://vuejs.org/api/sfc-script-setup.html#generics) (using `