Package Exports
- @queuezero/embed
- @queuezero/embed/dist/index.global.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@queuezero/embed) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@queuezero/embed
Embeddable vanilla JS widget for QueueZero viral waitlists. No build step required.
Installation
Via CDN (Recommended)
<div id="queuezero-waitlist"></div>
<script src="https://cdn.jsdelivr.net/npm/@queuezero/embed@latest/dist/index.global.js"></script>
<script>
QueueZero.init('queuezero-waitlist', 'your-campaign-slug', {
apiUrl: 'https://api.queuezero.io'
});
</script>Via NPM
npm install @queuezero/embedimport * as QueueZero from '@queuezero/embed';
QueueZero.init('queuezero-waitlist', 'your-campaign-slug', {
apiUrl: 'https://api.queuezero.io'
});API
QueueZero.init(elementId, campaignSlug, options)
Mounts a complete waitlist widget (form + status + referral share) to the specified element.
| Parameter | Type | Description |
|---|---|---|
elementId |
string |
ID of the container element |
campaignSlug |
string |
Your campaign identifier |
options.apiUrl |
string |
API endpoint URL |
Styling
The widget uses qz-* class names for styling:
.qz-embed-container { }
.qz-form { }
.qz-form-input { }
.qz-form-button { }
.qz-status { }
.qz-share { }License
MIT