a-giuliano / stencil-storybook-html

MIT License
14 stars 6 forks source link

Add action example #3

Closed JavierPozoDelevoper closed 2 years ago

JavierPozoDelevoper commented 2 years ago

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.

a-giuliano commented 2 years ago

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.

JavierPozoDelevoper commented 2 years ago

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.

a-giuliano commented 2 years ago

Oh I'm so glad it's helpful!