Auto-Generate Controls for SFC Vue Component with Vite #15341
Unanswered
andrewcourtice
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks - just wondering if someone would be able to help me out with getting controls generated automatically from a Vue SFC component.
I have followed the setup guide for getting started using Storybook with Vue 3, Vite and TypeScript. Everything is running ok except I cannot get my story to automatically generate controls (or source) based on the components props.
I've had controls configured using the
argTypes
property but as far as I am aware Storybook should be able to generate these out of the box based on the components props?I have been hunting through documentation and addons but can't find anything. Any help would be much appreciated.
Here is my current setup:
Storybook Packages:
main.js:
preview.js:
The source component props:
The story for this component:
Screenshot showing no controls:

Am I missing something completely obvious?
Beta Was this translation helpful? Give feedback.
All reactions