diff --git a/docs/writing-stories/typescript.mdx b/docs/writing-stories/typescript.mdx index 220e985c6b20..a78660f8b960 100644 --- a/docs/writing-stories/typescript.mdx +++ b/docs/writing-stories/typescript.mdx @@ -69,32 +69,57 @@ Sometimes stories need to define args that arenโ€™t included in the component's {/* prettier-ignore-end */} - ## Vue specific tips - Vue has excellent support for TypeScript, and we have done our utmost to take advantage of that in the stories files. For example, consider the following strongly typed Vue 3 single file component (SFC): +## Vue specific tips - ```html - +```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 `