Skip to main content

Overview

This guide shows you how to integrate Joyfill Components into your web application using the CDN Approach.

🚀 Quick Start

  1. Identify the version of joyfill/components you want to test and copy the script url using the following steps
  2. Open https://www.jsdelivr.com/package/npm/@joyfill/components?tab=files and pick the version that works for you on the right
  3. We are choosing 4.0.0-rc4 in this example
  4. You will find the script url under the default tab

Include the CDN Script

Add this script tag to your HTML <head> section:

Create a Container Element

Load a Form

Here is a sample contact form that you could use:

Complete HTML Example

That’s it! 🎉

Your contact form is now ready. The onChange callback will fire whenever the user makes changes to the form.