Skip to content
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

Web Components #1670

Closed
villelahdenvuo opened this issue Jun 17, 2019 · 4 comments
Closed

Web Components #1670

villelahdenvuo opened this issue Jun 17, 2019 · 4 comments
Assignees
Labels

Comments

@villelahdenvuo
Copy link

Hey,

First of all thank you for all the contributors for this awesome looking library.

I noticed that there are components exposed for React, which is nice when integrating Uppy to a React project, however to make it easier/ncier to integrate Uppy using any framework would be using native web components. That way they could be used in vanilla JS, Angular, etc.

Writing these components manually is probably not the best idea, but luckily the people behind Ionic have been working on an awesome project called Stencil.js, which is not a framework, but a compiler. It uses a JSX-like syntax, very similar to React and outputs JS using native browser APIs, without any dependencies.

If you are interested in this idea, I might be able to help implementing some components with Stencil and to avoid duplication maybe we could just export framework specific wrappers for these native web components. For example see: https://github.com/ionic-team/ionic/blob/master/angular/src/directives/proxies.ts

@arturi
Copy link
Contributor

arturi commented Jun 21, 2019

Hi! Thanks for the suggestion, it definitely sounds very interesting! Heard some good things about Stencil.

I’d be up for trying this out in a PR. What do you think, @goto-bus-stop?

@arturi arturi removed the Triage label Jun 21, 2019
@goto-bus-stop
Copy link
Contributor

A web component API seems fine but I don't think we should base the other integrations like React on it. I am hesitant to have an official web component API in this repository though because I don't think web components are particularly popular at this stage.

@arturi arturi self-assigned this Jul 29, 2019
@arturi
Copy link
Contributor

arturi commented Aug 5, 2019

After some more discussions, the consensus from the team is that we would love to endorse a third-party web component wrapper, in our Community Projects. So please send us a link if you end up writing one! But we feel that web components are not yet popular enough, for us to maintain an “official” integration in the main Uppy repo.

@arturi arturi closed this as completed Aug 5, 2019
@third774
Copy link

third774 commented Sep 1, 2023

Is this worth revisiting now that compatibility is in a much better place?

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

No branches or pull requests

4 participants