Skip to content

ModalKit — Modal & Popup UI Kit (Dialogs, Confirm Boxes & Lightbox)

1 downloads 24 views Updated 1 day ago
ModalKit — Modal & Popup UI Kit (Dialogs, Confirm Boxes & Lightbox)
Price
Free
No cost
Downloads
1
Category
UI Design
Last update
Nov 15, 2026
License
MIT / Free use
Reviewed by our team before publishing

About this code

ModalKit is a complete modal & popup UI kit for any website — 8 production-ready modals, dialogs and popups in one small package. Zero dependencies, zero build step: include two files and call the API.

What you get

  • 8 modal types in one kit: basic modal, confirm dialog, alert dialog, prompt dialog, image lightbox, slide-in drawer, form modal and loading spinner.
  • Promise-based JavaScript API: await ModalKit.confirm("Delete this file?") returns true/false — as easy as the native confirm(), but beautiful.
  • Keyboard accessible: ESC closes the top modal, Tab focus is trapped inside, and focus returns to the button that opened it. ARIA roles included.
  • Image lightbox with keyboard navigation: click any thumbnail to open the full image, arrow keys or buttons move between photos.
  • Form modal with inline validation: real form example included — invalid email shows an error and keeps the modal open.
  • Zero dependencies & fully customisable: plain HTML/CSS/JS, three sizes (sm / default / lg), two animations, and colour variables at the top of modal.css.

What's inside

index.html (live showcase with all 8 demos) · modal.css (all styles) · modal.js (the ModalKit API) · README.txt (full setup + API guide).

How to use

Include modal.css and modal.js in your page, then call ModalKit.confirm(), ModalKit.alert(), ModalKit.prompt(), ModalKit.lightbox(), ModalKit.drawer() or ModalKit.loading(). Full examples are in README.txt.

Need a Custom Website or Mobile App?

Downloading free code is just the start. Yadu Tech builds complete websites and mobile apps for businesses — design, development, deployment, all done for you.

👉 Chat on WhatsApp

Features & includes

Full source code
Easy setup
Clean, modular code
Responsive design

You might also like

More in UI Design
ToastKit UI — Toast & Notification Component Kit (HTML/CSS/JS)
Free
UI Design • 1w ago

ToastKit UI — Toast & Notification Component Kit (HTML/CSS/JS)

ToastKit UI — Toast & Notification Component Kit Toast notifications jo user ko pareshan nahi, guide karti hain. ToastKit UI is a lightweigh...

1 87
Free
Chat UI Kit — WhatsApp-Style Chat Interface Components (HTML/CSS/JS)
Free
UI Design • 2w ago

Chat UI Kit — WhatsApp-Style Chat Interface Components (HTML/CSS/JS)

Chat UI Kit — WhatsApp-Style Chat Interface Components Build a messenger-style chat interface in minutes, not days. Chat UI Kit is a ready-t...

2 109
Free
Glassmorphism UI Kit — Glass Cards, Navbar, Forms, Modals & Toasts (HTML/CSS/JS)
Free
UI Design • 2w ago

Glassmorphism UI Kit — Glass Cards, Navbar, Forms, Modals & Toasts (HTML/CSS/JS)

Glassmorphism UI Kit — Frosted-Glass Components for Modern Websites Beautiful frosted-glass cards, navbar, forms, modals and toasts in pure...

1 101
Free
ModalKit — Modal & Popup UI Kit (Dialogs, Confirm Boxes & Lightbox)
Free
Download