-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controlled Checkbox Animation #8
Comments
@schnubor Hi, This can add so simple. Just add handleChange to export object. |
@HosseinShabani Sorry, I don't get it. You got an REPL example? |
Solved it. I tried exporting handleChange in various ways now and couldn't get to work (context="module" etc.) So I figured I fork this and solve it via reactivity, you can check it in my fork: https://github.com/Perspective-Software/svelte-checkbox/blob/master/Checkbox.svelte I added a new prop called |
Hi,
I was wondering if this component can be controlled and was hoping changing the
checked
prop would do that, but it doesn't play the animation: https://svelte.dev/repl/97ce63a689d7409c89d7e88899125002?version=3.32.3Any idea how to correctly play the animation?
Thanks,
Christian
The text was updated successfully, but these errors were encountered: