Complete documentation for the <zeno-widget> Web Component.
zeno-site-key (Required): UUID.zeno-api-endpoint (Required): Worker URL.zeno-floating (Boolean): Enable floating mode.data-zeno-hidden-field-name: Input name for form submission. Default: zeno-token.zeno-i18n-verifying-label: Text while solving.zeno-i18n-error-label: Text on failure.zeno-i18n-solved-label: Text on success.zeno-i18n-human-label: Text for “I am human”.Note: Methods must be accessed on the DOM element.
startVerification(): Manually trigger the solving process (useful for custom flows).
document.querySelector('zeno-widget').startVerification();
solve: Fired when a token is obtained.
event.detail.token: The JWT/UUID token.error: Fired on failure.
event.detail.message: Error description.| Variable | Description |
|---|---|
--zeno-background |
Background color |
--zeno-color |
Text color |
--zeno-border-color |
Border color |
--zeno-border-radius |
Border radius |
--zeno-widget-width |
Width (default 250px) |
--zeno-widget-height |
Height (default 50px) |
--zeno-font |
Font family |