| Attribute | Type | Default | Description |
|---|---|---|---|
api-url |
string | current origin | Base URL for API calls |
auth-token |
string | - | JWT token for authenticated actions |
product-id |
string | - | Filter questions to a specific product |
username |
string | "Anonymous" | Display name for the user |
theme |
string | "light" | Widget theme: "light" or "dark" |
page-size |
number | 5 | Questions per page (5-50) |
show-search |
boolean | true | Show the search input |
show-ask-button |
boolean | true | Show the "Ask Question" button |
width |
string | 600 | Widget width in pixels |
height |
string | 800 | Widget height in pixels |
The Q&A widget supports extensive theming via custom attributes. See the full theming documentation for all options.
The Q&A widget uses postMessage to securely pass the authentication token to the iframe. This enables:
Without authentication, users can browse and read Q&A content but cannot interact.
You can customize the widget container with CSS: