Skip to main content

Overview

This guide shows you how to integrate Joyfill Components into your JavaScript application using ES modules and a build tool like Parcel.

🚀 Quick Start

Setup Project

Create a new project and install dependencies:

Create HTML File

Create src/index.html:

Create JavaScript Module

Create src/index.js:

Add Package.json Scripts

Update your package.json:

Start Development Server

Open http://localhost:1234 in your browser.

Complete Project Structure

Complete HTML Example

Complete JavaScript Example

Build for Production

This creates optimized files in the dist/ folder ready for deployment.

Common Configuration Options

That’s it! 🎉

Your form is now ready with ES modules. The build process will bundle everything for production deployment.