woutdp / live_svelte

Svelte inside Phoenix LiveView with seamless end-to-end reactivity
https://hexdocs.pm/live_svelte
MIT License
1.01k stars 37 forks source link

How to use function components in Svelte #129

Closed davidahmed closed 1 month ago

davidahmed commented 1 month ago

Is it possible to use typical components inside the .svelte files? (e.g. https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html) . If yes, could you please guide a novice here? We have most of our stuff (e.g. button, input, etc.) as Phoenix Components, and being able to use them inside .svelte files would be great.

woutdp commented 1 month ago

Not possible, you'd have to recreate them in Svelte.