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

Minimal Getting Started with Material Components Web Components #85

Open
gpmech opened this issue Jan 24, 2021 · 0 comments
Open

Minimal Getting Started with Material Components Web Components #85

gpmech opened this issue Jan 24, 2021 · 0 comments

Comments

@gpmech
Copy link

gpmech commented Jan 24, 2021

I think there is a need for a minimal "Getting Started" with MWC Components. I'm just looking for how to get the following working, without the unpkg link. I've npm install'd mwc-button, but cannot run the minimal HTML below. Based on comments I've seen, this kind of example is whats holding people back.

<script type="module" src="node_modules/@material/mwc-button/mwc-button.js">
<mwc-button>Press Me!</mwc-button>

Even the example code given on the main part of the github page only works with es-dev-server --node-resolve. What about devs using other technologies (I used django) who want reusable web components, and don't want an unpkg link which may go away/ break compatibility in the future?

I would love a minimal example of compiling mwc-button (or any other mwc component) and then using it in an html page devoid of any special hosting requirements.

Thanks for making a great technology, I'd love to use it, just missing that last step!

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

1 participant