How to access link with method other than get within LiveSvelte

Hi, I’m trying to send a DELETE request to logout my user. I have phx.gen.auth in my project. It’s pretty straight forward in LiveView with .link, but I’m having a hard time replicating this with using LiveSvelte. I thought about using phx-click event, but the logout code from the session controller doesn’t have what it needs.

Is there a way to do some kind of delete request to the controller within the handle_event?
Or is there some easier way to handle this?

I had to use the data attributes (data-method, data-csrf, data-to) used in .link found in Phoenix.Component directly on the a tag in my svelte file. Had to also generate the csrf token using Plug.CSRFProtection.get_csrf_token_for(href) and pass it in as props to the svelte component. Works now.

Not the cleanest solution would love to hear if someone had a better way of doing this.