An open API service indexing awesome lists of open source software.

https://github.com/ranjeetsinghbnl/stenciljs-javascript

Stenciljs component in any html javascript step by step guide
https://github.com/ranjeetsinghbnl/stenciljs-javascript

javascript microfrontend stencil stenciljs-components

Last synced: about 1 year ago
JSON representation

Stenciljs component in any html javascript step by step guide

Awesome Lists containing this project

README

          

# Stencil component without a Framework

This is a step by step guide, how we can use a stencil component in a project without a JavaScript framework.
Integrating a Stencil component to a project without a JavaScript framework is straight forward.If you're using a simple HTML page, you can add your component via a script tag.

## Similar guides
I have created another framework integration guide to use stencil components

* [Stencil components in Vue](https://github.com/ranjeetsinghbnl/stenciljs-vue)
* [Stencil components in React](https://github.com/ranjeetsinghbnl/stenciljs-react)
* [Stencil components in Angular](https://github.com/ranjeetsinghbnl/stenciljs-angular)
* [Stencil components in javascript](https://github.com/ranjeetsinghbnl/stenciljs-javascript)

This example use the stencil component from the following project
* [Product & Cart showcase example](https://github.com/ranjeetsinghbnl/product-mgmt-stenciljs)

## Using NPM package

For example, if we published a component to npm, we could load the component through unpkg like this:

```html




body {
background-color: #f7f7f7;
margin-top: 3em;
}










```

For more details you can also check the official [integration guide](https://stenciljs.com/docs/javascript).