Replace browser alert and confirm dialogs with styled, animated popups that match your site's design without touching JavaScript logic.
Show multiple dialog boxes at the same time and let users dismiss them individually or all at once.
Build a custom confirmation dialog for a delete action that looks consistent across desktop and mobile browsers.
Add a styled text-input prompt to collect a value from the user, replacing the browser default that cannot be styled.
| hubspot/vex | lukehaas/css-loaders | erikflowers/weather-icons | |
|---|---|---|---|
| Stars | 6,887 | 7,060 | 7,123 |
| Language | CSS | CSS | CSS |
| Setup difficulty | easy | easy | easy |
| Complexity | 1/5 | 1/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Include the Vex script and a theme CSS file, no build tools or dependencies required for basic use.
Vex is a small JavaScript library created by HubSpot for showing dialog boxes in web applications. A dialog box is the popup window that appears when a site needs to ask the user a question, confirm an action, or prompt them to type something. Browsers have built-in versions of these (alert, confirm, and prompt), but they look plain and cannot be styled. Vex is a drop-in replacement that gives developers full control over how these dialogs look and behave. The library weighs about 5.6 kilobytes after compression, has no external dependencies, and works on mobile devices as well as desktop browsers. Multiple dialogs can be open at the same time, and they can be closed individually or all at once. Transitions and animations are configurable and described in the README as smooth. The styling is handled through CSS, so matching a site's existing visual design is a matter of writing or overriding CSS rules rather than modifying JavaScript. Vex supports UMD, which means it can be loaded through various module systems or included directly in a page with a script tag. A plugin system allows additional behavior to be added on top of the core functionality. The repository's README is brief and links out to a demo page and full documentation for setup instructions and the complete API. The project is open-source and was released by HubSpot as part of their open-source program.
A tiny JavaScript library that replaces the browser's plain built-in alert, confirm, and prompt dialog boxes with fully styleable, mobile-friendly popups that you control completely with CSS.
Mainly CSS. The stack also includes JavaScript, CSS.
Open-source library released by HubSpot, specific license terms are covered in the repository.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.