a-giuliano/stencil-storybook-html

Add action example

JavierPozoDelevoper opened this issue · 3 comments

Based on this example I have been trying to add a log with an "onclick" action on a Stencil component but I can't get it to show up in the storybook.

Could you add an example of how to add actions in a story to this repository?
Documentation of storybook actions

Thx.

Hey @JavierPozoDelevoper! This is a great question. I've created #4 to demonstrate how to add actions. Let me know if this is a helpful example.

Hey @a-giuliano ! This works for me.
Before your example I was using the old way of creating stories and this optimizes my code a lot.
Thank you very much.

Oh I'm so glad it's helpful!