Anchors/forms inside Menu?
#4210
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Hey @colecrouter, or course, we use anchors for our own header menus now. Here's a few examples:
I'm assuming you would be using SvelteKit Form Actions for something like the Sign Out button, correct? If so I'll defer to @Hugos68 for recommendations there. As he implemented this component and has the best handle around Svelte specifics like this. And this does seem like a common use case, so may be ripe for new examples on our end. I'd encourage a PR from anyone willing and able. |
Beta Was this translation helpful? Give feedback.
-
|
@colecrouter Hello 👋, you were on the right track utilizing Let me know if that helps you or if anything is unclear! |
Beta Was this translation helpful? Give feedback.

@colecrouter Hello 👋, you were on the right track utilizing
elementfor this, I've created an example here: https://stackblitz.com/edit/jxflf4aq?file=src%2Fapp.svelteLet me know if that helps you or if anything is unclear!