Skip to main content
Set up embeds in the dashboard first. See Embedding forms in the dashboard.

Rendering the form embed Component

When using dangerouslySetInnerHTML, only render embed code from trusted providers. Sanitize HTML in production environments.

HubSpot forms

Mailchimp signup forms

Google forms

Calendly

Best practices

Performance tip: Lazy-load heavy embeds using Intersection Observer to avoid impacting page load.

Security considerations

  1. Validate embed sources and limit to trusted domains.
  2. Enforce HTTPS for all embeds.
  3. Update your Content Security Policy (CSP) to allow the provider domains.
  4. Sanitize HTML output when rendering raw embed code.

Accessibility

  1. Ensure embedded forms include labels and instructions.
  2. Test keyboard navigation and screen reader behavior.
  3. Verify color contrast for embedded form UI elements.