@vetorzero/pts-custom-elements
v0.3.2
Published
Stencil Component Starter
Downloads
87
Readme
@vetorzero/pts-custom-elements
Custom web components for PTS, built with StencilJS.
Components
<pts-remote-picker>— Remote autocomplete picker with form integration.
Getting Started
bun install
bun run startBuilding
bun run buildTesting
bun run testPublishing
Versions are auto-published to npm via CI when a new Git tag is pushed. To release a new version:
npm version patch # or minor, major
git push --tagsThis bumps the version in package.json, creates a Git tag, and pushes it — triggering the automated publish to npm.
Usage
Via unpkg (CDN)
Add the following script tag to your HTML. Components will be lazy-loaded as they are used:
<script type="module" src="https://unpkg.com/@vetorzero/pts-custom-elements"></script>
<pts-remote-picker
name="entity"
endpoint="https://api.example.com/remote-picker/entities"
></pts-remote-picker>To pin a specific version:
<script type="module" src="https://unpkg.com/@vetorzero/[email protected]/dist/pts-custom-elements/pts-custom-elements.esm.js"></script>Via npm
bun add @vetorzero/pts-custom-elementsThen import the loader in your application entry point:
import '@vetorzero/pts-custom-elements/loader';