Closed getflourish closed 2 years ago
Okay, I figured it out by looking at the Storybook Story.
Take it as feedback that the Storybook Docs could use some love :)
Hello and thank you for your feedback. I agree with you, the code examples we show in the docs are automatically generated by Storybook and we're planning to improve that aspect very soon. We think you should be able to copy and paste and get a somewhat working component out of the box.
I’m trying to use the Flyout component, but I’m a bit lost looking at the docs on Storybook.
This is example code:
As far as I understand, I can pass in a component via the
trigger
prop.When I do that, that component is wrapped in a
<div type="button">
but when I click it, nothing happens.I see that there’s a
onClick
prop, but it’s not clear what the callback looks like because Storybook seems to mess up the example code :(The issue with the example code applies to all examples, but so far I’ve been able to figure it out, except for this one :D
I’d appreciate any help! Thanks!