Pro Components Kit is a set of Web Components & Custom Elements to use professional components in a declarative style.
Pro Components Kit elements have three modes:
- Custom Element -
100%
convenience; - Web Component -
100%
security; - Custom Element Wrapper -
100%
customization;
Pro Components Kit takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components & Custom Elements that run in any browser supporting the Custom Elements v1 spec.
Pro Components Kit elements are just HTML Web Components & HTML Custom Elements, so they work in any major framework or with no framework at all.
Check out our docs here.
There are two strategies we recommend for using Pro Components Kit:
- Put a script tag
<script type="module" src="https://cdn.jsdelivr.net/npm/@uiwebkit/pro@latest/dist/pro.esm.js"></script>
in the head of your index.html - To support old browsers, also put a script tag
<script nomodule src="https://cdn.jsdelivr.net/npm/@uiwebkit/pro@latest/dist/pro.js"></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
- Run
npm i @uiwebkit/pro --save
- Put a script tag similar to this
<script type="module" src="node_modules/@uiwebkit/pro/dist/pro.esm.js"></script>
in the head of your index.html - To support old browsers, also put a script tag
<script nomodule src="node_modules/@uiwebkit/pro/dist/pro.js"></script>
in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc