Skip to content

Is the library available under vue or react? #202

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

Open
Jane-blog opened this issue Mar 11, 2025 · 1 comment
Open

Is the library available under vue or react? #202

Jane-blog opened this issue Mar 11, 2025 · 1 comment

Comments

@Jane-blog
Copy link

How do vue3+ts projects use this great library

@xavierholt
Copy link
Collaborator

The code is vanilla JavaScript, so it should be compatible with TypeScript as-is (although it won't have any types specified). The same goes for React / Vue / etc. You should be able to load SmilesDrawer as a separate library, and call out to it when you need it.

In React, I believe you would use a useEffect() callback to do your drawing. I'm not familiar with Vue.

Do you have a link with the sort of examples you're looking for? I could write something up to add to the docs, but I'm not very familiar with any of the big JS frameworks, so it would be nice to see some existing examples to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants