New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@bsmp/webcomponents

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bsmp/webcomponents

Stencil webcomponents library

latest
Source
npmnpm
Version
1.0.47
Version published
Maintainers
1
Created
Source

Web components library

@bsmp/webcomponents

  • Reusable Web Components
  • The web components are standard HTML elements, so they work in any major framework or with no framework at all.
  • In many cases, the components can be used as a drop in replacement for traditional frontend frameworks to build widgets, microapps, apps, etc.

Built With Stencil

Using the webcomponents library

Script tag

  • Put the following script tag in the head of your index.html: <script src='https://unpkg.com/@bsmp/webcomponents/dist/bsm.js'></script>
  • You can then use the webcomponents anywhere in your template, JSX, html etc.

In a stencil-starter app

  • Run npm install @bsmp/webcomponents --save
  • Add an import to the npm packages import '@bsmp/webcomponents';
  • Then you can use the webcomponents anywhere in your template, JSX, html etc

Dev: getting started

Clone the repo, then run:

npm install
npm start

To watch for file changes during develop, run:

npm run dev

To build the components and classes for production, run:

npm run build

To run the unit tests for the components and classes, run:

npm test

Need help? Check out the Stencil docs here.

FAQs

Package last updated on 07 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts