-
Notifications
You must be signed in to change notification settings - Fork 31
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
React implementation #226
Comments
Hi, Thank you for showing interest in the project. Well... a side project already exists for this purpose: https://github.com/vscode-elements/react-elements I've just noticed that this fact is missing from the documentation. My bad, sorry. |
@bendera I want to use this library as a typical component framework (e.g. like MUI-React). Is this possible? According to the web component version documentation (https://vscode-elements.github.io/getting-started/#installation):
It sounds like these |
It's not a typical component library in terms of styling. It works without the vscode host, but will be ugly. You can go to the documentation page, copy the CSS variables from the HTML element, and paste into your code. But you don't need any additional javascript setup. |
@bendera It would be great to be able to use it as a typical component library (especially for React) out of the box (without a vs code host) where the CSS styles (as themes) are already included. Don't you think? I think the use cases would be much larger than if this lib was limited to vs code extensions. What do you think of the idea? |
I created a React implementation of this lib (still WIP)
https://github.com/jonit-dev/vscode-extension-react-webview-boilerplate
Together with a boilerplate + hot reload
enjoy
The text was updated successfully, but these errors were encountered: