I have an on:click event that internally references tagClose in my component and I'm not sure how to document it. The examples I've found are all understandably outdated. I'd like something like:
import { action } from '@storybook/addon-actions';
import TagBasic from './index.svelte';
export default {
title: 'TagBasic',
component: TagBasic,
tags: ['autodocs']
};
export const Default = {
args: {
label: 'Label',
},
on: {
tagClose: action('click')
}
};
I've confirmed the click event is working in my SvelteKit environment.