Svelte · Senior · Question 54 of 75
What does <svelte:options customElement> change about styling and props?
- ✓Correct answer: Styles go into the shadow root, props are exposed as attributes/properties, and
$host()returns the host element - 2Nothing changes
- 3The component loses reactivity
Explanation
Custom elements are useful for embedding Svelte widgets in other frameworks, with some limitations around SSR and slots.