Visitza email shared

Util

Composable 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-shared

Installation

1 · Add registry to components.json

2 · Install component

API Reference

PropTypeDescription
escapeHtml(str)
string → stringEscapes &, <, >, quotes for text and attribute contexts.
buildVisitzaInlineLogo(...)
→ stringInline SVG wordmark; optional visit / za / marker colours.
renderVisitzaEmailLayout(input)
→ stringFull XHTML document with preheader, card, footer.
visitzaEmailCtaRow(opts)
→ stringSingle primary button row (MSO-friendly padding).
VisitzaEmailProduct
typepublic | partner | supplier — selects brand + palette.