React dialog, drawer and popover components
Free React overlay components: dialog, alert dialog, drawer, sheet, popover, dropdown menu, context menu and hover card with focus trapping and escape handling.
Dialog, AlertDialog, Sheet, Drawer, Popover, DropdownMenu, ContextMenu, HoverCard and Tooltip are built on Base UI. Focus moves in when they open and returns to the trigger when they close, Escape closes them, and the modal ones make the page behind inert and stop it scrolling.
Choose by how much the overlay interrupts. A decision the user must answer is an AlertDialog. A short, focused task is a Dialog. Work beside the page, such as filters or an edit form, is a Sheet, and on phones a Drawer from the bottom. Small interactive content anchored to a button is a Popover, and a hint is a Tooltip.
Which one should I use?
| You need | Use | Why |
|---|---|---|
| Confirm before deleting | Confirm Destructive | Red trigger plus an alert dialog |
| A custom confirmation layout | Alert Dialog | Cannot be dismissed by clicking outside |
| A short form that blocks the page | Dialog | Focus trapped, Escape closes |
| A side panel for filters or edits | Sheet | Slides from any edge |
| A bottom sheet on mobile | Drawer | A Sheet from the bottom edge |
| An iOS-style list of actions | Mobile Action Sheet | Separate Cancel row |
| A menu of actions on a button | Dropdown Menu | Shortcuts, submenus, typeahead |
| A right-click menu | Context Menu | Opens at the pointer or on long press |
| A small panel anchored to a button | Popover | Non-modal |
| Preview a person or link on hover | Hover Card | Also opens on keyboard focus |
| A hint on an icon button | Tooltip | Hover and focus only |
| Preview a record beside a list | Peek Panel | Non-modal, page stays usable |
| Notifications behind a bell | Notification Inbox | Unread count in the button name |
| A keyboard shortcuts cheat sheet | Keyboard Shortcuts | Opens with ?, searchable |
16 items
npx shadcn@latest add @minidev/alert-dialog @minidev/command-dialog @minidev/confirm-destructive @minidev/context-menu @minidev/dialog @minidev/drawer @minidev/dropdown-menu @minidev/hover-card @minidev/mobile-action-sheet @minidev/notification-inbox @minidev/peek-panel @minidev/popover @minidev/sheet @minidev/tooltip @minidev/animated-tooltip @minidev/keyboard-shortcutsComponents 15
Shadcn style alert dialog on Base UI for confirmations that need an explicit answer. Modal backdrop, focus trap, title, description and an actions row.
npx shadcn@latest add @minidev/alert-dialogCommand dialog that opens the command palette in a modal from a list of commands with labels and handlers. Wire it to a Cmd K shortcut in your React app.
npx shadcn@latest add @minidev/command-dialogDestructive action confirm: a red trigger button opens a dialog with a title, warning text, Cancel and Confirm. Labels are configurable for deletes and resets.
npx shadcn@latest add @minidev/confirm-destructiveRight click context menu that opens at the cursor with menu items, including destructive items in red. Closes on selection or click outside, in React.
npx shadcn@latest add @minidev/context-menuDialog
uiShadcn compatible modal dialog on Base UI with a blurred backdrop, enter and exit animation, close button, header, title, description and a footer bar.
npx shadcn@latest add @minidev/dialogDrawer
uiBottom drawer that slides a sheet up from the screen edge with a titled header, close button and scrolling body, capped at 80% of the viewport height.
npx shadcn@latest add @minidev/drawerShadcn compatible dropdown menu on Base UI with groups, labels, checkbox and radio items, submenus, shortcuts, separators and destructive items.
npx shadcn@latest add @minidev/dropdown-menuA card that appears below a trigger on mouse hover to preview extra detail such as a user profile or link summary. A light take on the shadcn hover card.
npx shadcn@latest add @minidev/hover-cardAn iOS style action sheet that rises from the bottom with a list of actions, destructive items in red, a Cancel button and a backdrop that dismisses on tap.
npx shadcn@latest add @minidev/mobile-action-sheetA bell with an unread count that opens a notification popover: All and Mentions tabs, unread dots, mark all read, type icons and an empty state. Built in React.
npx shadcn@latest add @minidev/notification-inboxA right side detail panel with a titled header, a close button and a scrollable body for previewing a record without leaving the list. Tailwind styled.
npx shadcn@latest add @minidev/peek-panelPopover
uiA floating React panel anchored to a trigger, built on Base UI with side and align options, collision aware positioning, title and description parts.
npx shadcn@latest add @minidev/popoverSheet
uiSlide-out sheet from the left, right, top or bottom with a backdrop, a titled header, a close button and a scrollable body, rendered as a modal dialog in React.
npx shadcn@latest add @minidev/sheetTooltip
uiReact tooltip on Base UI with a provider for delay, a trigger, and content that positions on any side with an arrow and portal. Drop-in shadcn Tooltip API.
npx shadcn@latest add @minidev/tooltipReact keyboard shortcuts cheat sheet: a searchable dialog of grouped shortcuts opened with the ? key or a button, with Command glyphs on Mac and Ctrl elsewhere.
npx shadcn@latest add @minidev/keyboard-shortcuts
Motion 1
Animated Tooltip
motionReact row of overlapping avatars where hovering or focusing one pops up a name and role card that tilts and slides with the pointer on springs.
npx shadcn@latest add @minidev/animated-tooltip
Using an AI coding agent? Read the agent guide, point it at /llms.txt for the full index, or paste /AGENTS.md into your project. Every component has plain Markdown docs at /docs/<name>.md.
See them live
Galleries render these components with sample data in every state.
Frequently asked questions
What is the difference between a dialog and an alert dialog?
An AlertDialog is for confirmations the user must answer, so it cannot be dismissed by clicking outside, and screen readers announce it as an alert dialog. A Dialog can be dismissed freely.
Should I use a sheet or a dialog?
Use a Sheet for secondary tasks that sit beside the page, such as filters, edit forms or mobile navigation. Use a Dialog for a centred decision or a short form. Both trap focus and return it to the trigger on close.
How do I make a bottom sheet on mobile?
Use Drawer. It is a Sheet that slides up from the bottom edge, with the same focus trap and scroll lock. For a short list of actions in the iOS style use MobileActionSheet.
Can I put important information in a tooltip?
No. Tooltips are hints that appear on hover and keyboard focus, and touch users may never see them. Put anything people need on the page, or in a Popover they can open with a tap.