storybook-eol / addon-smart-knobs

🧠 This Storybook plugin uses @storybook/addon-knobs but creates the knobs automatically based on PropTypes.
https://storybooks.js.org
217 stars 36 forks source link

Smart Knobs with Stencil Components? #58

Open justindasilva opened 5 years ago

justindasilva commented 5 years ago

I've used https://www.npmjs.com/package/stencil-storybook-wrapper to put storybook into my stencil app.

I'm hoping to be able to add Smart Knobs to my stencil components. Will it work with Stencil?

I tried this a couple weeks ago and didn't have any luck.

Was talking to someone who had this to say:

As the readme says it works on "proptypes and flow" and needs the docgen babel plugin for react which means its cant be used for Stencil. But since Stencil is based on TS and we can easily create definition file (.d.ts) we should be able to use a similar approach to create stencil knobs plugin.