Skip to content

How to pass chidlren to a HTML element without overhead in Svelte 5 #13347

Closed Answered by brunnerh
x0k asked this question in Q&A
Discussion options

You must be logged in to vote

This:

<button {...props}>{@render children?.()}</button>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by x0k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants