Widget configuration
The widget is configured through data-* attributes on the container
element (the same keys work as an options object passed to
VisamundiWidget.mount()).
Options
Section titled “Options”| Attribute | Type | Default | Description |
|---|---|---|---|
data-language | ISO 639-1 | auto (<html lang>, else en) | UI language. Currently en / fr. |
data-theme | string | light | Visual theme (light / dark). |
data-default-nationality | ISO alpha-3 | — | Pre-select a nationality (e.g. FRA). |
data-default-destination | ISO alpha-3 | — | Pre-select a destination (e.g. IND). |
data-partner-id | string | — | Partner id, appended to all result links as ?partner=<id>. |
data-key | string | — | Optional public embed key (reserved for future use). |
data-api-base | URL | https://requirements.visamundi.app/api | Override the data endpoint (self-host / debugging). |
Country codes use ISO 3166-1 alpha-3 (e.g. FRA, IND), matching the
values returned by the widget’s country list.
Example
Section titled “Example”<div data-visamundi-widget data-language="en" data-theme="light" data-default-nationality="FRA" data-partner-id="YOUR_PARTNER_ID"></div><script src="https://requirements.visamundi.app/widget.js" defer></script>