"html".
When to use:
- Custom HTML structures (tables, complex layouts)
- HTML that requires specific formatting not available in Elemental elements
- Legacy HTML content that needs to be preserved
- Custom styling that requires direct HTML/CSS
string
required
The raw HTML. Any valid HTML markup, including CSS styles.
object
Region-specific content for localization. See the .
string[]
An array of channel names. The HTML element renders only for the listed channels. See .
Best practices
- Use sparingly: prefer standard Elemental elements for cross-channel compatibility
- Email only: HTML elements only work in email channels
- Test thoroughly: HTML rendering varies across email clients. Test in several
- Use inline styles: email clients often strip
<style>tags, so use inline CSS - Keep it simple: complex HTML may not render correctly in all email clients
- Email: ✅ Full support
- Push: ❌ Not supported
- SMS: ❌ Not supported
- Inbox: ❌ Not supported