You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to test a svelte component using CSF3. The component is a snack bar that is not shown until the exported open function is called. How, in CSF3, can I call an exported method?
<script lang="ts">
export let text= '';
export const open = () => {
...
};
</script>
<Modal>
...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I'm trying to test a svelte component using CSF3. The component is a snack bar that is not shown until the exported open function is called. How, in CSF3, can I call an exported method?
calling open in this example
Additional information
Storybook 7.6.17
Svelte 4
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions