Replies: 2 comments 1 reply
-
Hi! This Material library does not use React, and does not require Typescript or Sass to use. You can use it in plain old javascript with or without frameworks. <!DOCTYPE html>
<html>
<head>
<title>Material Web JS</title>
<style>
body {
display: flex;
gap: 16px;
align-items: center;
flex-wrap: wrap;
}
</style>
<script type="module">
import 'https://esm.run/@material/web/all.js';
</script>
</head>
<body>
<md-filled-button>Filled</md-filled-button>
<md-outlined-button>Outlined</md-outlined-button>
<md-checkbox></md-checkbox>
<md-switch></md-switch>
<md-radio name="radio"></md-radio>
<md-radio name="radio"></md-radio>
<md-radio name="radio"></md-radio>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi! First of all, thank you for this thread and the reply, but I wasn't unable to find it in the documentation either. Maybe is something so simple, but I think it'd be nice to add it to the docs. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Since I work more or less with vanilla JS, and the Material Lib uses React, typescript and scss, I was wondering about the possibility for a vanilla JS port, or more specifically wondering about the rules surrounding a custom partial port of the project? Hereby meaning partially rewriting the typescript and React elements to suit vanilla javascript. Is that allowed?
Regards
Beta Was this translation helpful? Give feedback.
All reactions