The “modules” folder contains the javascript files used in most of the Javascript examples. Each module imports one or more javascript files from the “source” folder. For example, the modules/smart.button imports the smart.element.js and smart.button.js from the “source” folder. You can see that in our Docs we refer to the “modules” – https://www.htmlelements.com/docs/button/.
The “components” folder contains the web components with shadow dom and the css styles imported in them. You may read more: https://www.htmlelements.com/docs/shadow-dom/. We use these in all examples about Shadow DOM, which are available in the demos section.
Best regards,
Peter Stoev
Smart UI Team