A modal box made for Vue that uses Tailwind CSS
The Vue Tailwind Modal Lightbox is a versatile Vue component designed to create stunning modals and lightboxes with the beauty of Tailwind CSS. It is compatible with both Vue 2 and 3 as well as TailwindCSS version 1 and 2, making it an adaptable choice for modern web applications. The component simplifies the addition of modals to your project, while leveraging the utility-first approach of Tailwind CSS for customization.
With easy installation and usage, this modal component is perfect for developers seeking a quick yet stylish way to implement modals in their applications. It comes with various features for enhanced flexibility, ensuring that your modal not only looks great but also provides an excellent user experience.
Easy Installation: Just add it to your Vue project, either globally in the main js file or within individual component files for seamless integration.
Dynamic Visibility: Control the display of the modal by passing a boolean to the :showing attribute, allowing for straightforward show and hide functionality.
Event Handling: Capture the close event with the @close attribute for further processing when the modal is dismissed.
Customizable Close Button: Option to disable the close button in the top right corner by setting the :showClose attribute to false, ensuring a tailored user experience.
Background Click Behavior: By default, clicking the background closes the modal; however, this behavior can be adjusted by setting the backgroundClose parameter to false.
Custom CSS: Apply your own styles via an optional CSS parameter, allowing customization with Tailwind classes or standard CSS to fit your design needs.
Animation Support: Include an optional CSS file for fade-in and fade-out animations, creating a smoother transition for users interacting with the modal.
Purge CSS Compatibility: Ensure your production builds remain optimal by adding the necessary configurations to the Purge CSS whitelist, keeping your build lean without sacrificing functionality.