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've been trying to figure out how to use a custom component with render delegation. I get how to swap out the html element, but didn't quite follow the docs when it came to the custom element.
I think one of the more common custom elements to delegate to would be the bits button. Quite a few other bits will render a html element... but it would be nice to use the bits button.svelte component instead.
Are there any examples to point to or more clarification on how to go about it?
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
-
I've been trying to figure out how to use a custom component with render delegation. I get how to swap out the html element, but didn't quite follow the docs when it came to the custom element.
I think one of the more common custom elements to delegate to would be the bits button. Quite a few other bits will render a html element... but it would be nice to use the bits button.svelte component instead.
Are there any examples to point to or more clarification on how to go about it?
Beta Was this translation helpful? Give feedback.
All reactions