Replies: 2 comments 12 replies
-
Hi @Yofou, Thank you for your work so far. It's highly appreciated 👍. Your Svelte wrapper is well aligned with the Embla Carousel vision: A bare bones library that does the heavy lifting and enables users to extend it to their liking with its highly flexible API. I'm going to suggest a few additions and small adjustments that I hope will make sense to you:
Here's a simple CodeSandbox that demonstrates the changes above. 🚨 Note!I didn't have much time to create my CodeSandbox example so it's not using TypeScript. But the Svelte package will be written in TypeScript once we agree on its contents. Let me know what you think and thank you for your time! Cheers, |
Beta Was this translation helpful? Give feedback.
-
The store approach would make this much more usable. 👍 I tried both the original package vs the one integrated now, and would not use this one in it's current state. I got both of them working, but the current approach throws TypeScript warnings when you put Also the store approach would making porting the documentation over much easier. Currently there is very little usable documentation and took a lot of experimentation to get it working. |
Beta Was this translation helpful? Give feedback.
-
The Idea
as you may know, a while back I mentioned I had made a Embla adapters for Svelte earlier this year called svelte-embla in #307 , after some significant life changes between the period of when I posted that issue and now I've been quite busy adjusting to them. however now I have finally settled down and ready to commit some time to discuss about turning my svelte adapter for embla into an official supported package.
things to note, this is a really small adapter, the adapter it's self fit's nicely in one file here, which should making the task if so to happen of moving it to the official repository a breeze.
feel free to go explore the package and tell me what you think, maybe there should be some improvement that need to be made before moving it over
Beta Was this translation helpful? Give feedback.
All reactions