Visitza email shared
UtilComposable pieces for Visitza-styled HTML email: escapeHtml, inline logo SVG, VISITZA_EMAIL_BRANDS / VISITZA_EMAIL_PALETTES, visitzaEmailCtaRow (bulletproof CTA), and renderVisitzaEmailLayout for the shared outer shell. Ships with email-guards (URL and recipient validation, subject clamping, hex sanitization). Imported by waitlist-email and email-confirmation.
core/visitza-email-sharedInstallation
1 · Add registry to components.json
2 · Install component
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
escapeHtml(str) | string → string | — | Escapes &, <, >, quotes for text and attribute contexts. |
buildVisitzaInlineLogo(...) | → string | — | Inline SVG wordmark; optional visit / za / marker colours. |
renderVisitzaEmailLayout(input) | → string | — | Full XHTML document with preheader, card, footer. |
visitzaEmailCtaRow(opts) | → string | — | Single primary button row (MSO-friendly padding). |
VisitzaEmailProduct | type | — | public | partner | supplier — selects brand + palette. |