sdpi-components
v0.0.1
Published
A collection of web components for the Stream Deck Property Inspector
Downloads
10
Readme
Stream Deck Property Inspector Web Components
This is a small collection of components for building out Stream Deck Property Inspector pages. This is incomplete and I'm mostly putting this out initially just so I can actually begin using it.
Getting Started
To start building a new web component using Stencil, clone this repo to a new directory:
git clone https://github.com/TheAppleFreak/streamdeck-property-inspector-components.gitand run:
npm install
npm startTo build the component for production, run:
npm run buildNeed help? Check out the Stencil docs here.
Using this component
There are three strategies we recommend for using web components built with Stencil.
Script tag
- Put a script tag similar to this
<script src='https://unpkg.com/[email protected]/dist/sdpi-components.esm.js'></script>in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
Node Modules
- Run
npm install sdpi-components --save - Put a script tag similar to this
<script src='node_modules/sdpi-components/dist/sdpi-components.esm.js'></script>in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
In a stencil-starter app
- Run
npm install sdpi-components --save - Add an import to the npm packages
import sdpi-components; - Then you can use the element anywhere in your template, JSX, html etc
