Component · Modals & overlays
Modal Dialog
Accessible Vue 3 modal dialog with v-model:open, focus trap, Escape and backdrop close, scroll lock and footer slot. Tailwind CSS, dark mode.
Modals interrupt the page, so they need to be careful about focus, scrolling and how they close. These Vue 3 modal, drawer and popover components handle those details and are styled with Tailwind CSS 4 and class-based dark mode.
Open state is bound with v-model, content goes in slots, and there are no dependencies besides vue. Install them with npm or copy the single-file component into your project.
Component · Modals & overlays
Accessible Vue 3 modal dialog with v-model:open, focus trap, Escape and backdrop close, scroll lock and footer slot. Tailwind CSS, dark mode.
Component · Modals & overlays
Vue 3 slide-over drawer that opens from the left or right, with v-model:open, focus trap, Escape close, header and footer slots. Tailwind CSS, dark mode.
Component · Modals & overlays
A lightweight and customizable tooltip component with dynamic dark/light themes, responsive positioning (top, bottom, left, right), and smooth hover effects with adaptive colors.
Good to know
FAQ
Yes. They keep focus inside while open, close on Escape and return focus to the trigger, either through the native dialog element or a small built-in focus handler.
Yes. Bind the open state with v-model to a ref and set it to true from any function, such as after a failed request or a keyboard shortcut.