@stackone/hub ships a framework-agnostic custom element (<stackone-hub>) you can drop into any HTML page with a <script> tag.
Add the script
Attribute reference
All scalarStackOneHub props map to kebab-case HTML attributes.
| Attribute | Type | Default | Description |
|---|---|---|---|
token | string | — | Connect session token from your backend |
mode | integration-picker | integration-picker | Hub mode |
base-url | string | https://api.stackone.com | StackOne API base URL |
app-url | string | https://app.stackone.com | StackOne App URL |
height | string | 500px | Component height |
theme | light | dark | JSON object | light | Theme keyword or a JSON-encoded PartialMalachiteTheme |
account-id | string | — | Pre-select a specific account to edit |
on-close-label | string | Close | Custom label for the close button |
show-footer-links | boolean attribute | true | Toggle footer visibility |
Events
Callbacks are dispatched asCustomEvents on the host element with bubbles: true and composed: true.
| Event | event.detail |
|---|---|
success | { id: string; provider: string } |
close | undefined |
Next steps
Backend setup
Generate session tokens from your backend.
Filter connectors
Restrict the Hub to a single provider or category.