Skip to content

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.

16 itemsFree, MITshadcn CLI compatibleTailwind CSS v4Light and dark

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 needUseWhy
Confirm before deletingConfirm DestructiveRed trigger plus an alert dialog
A custom confirmation layoutAlert DialogCannot be dismissed by clicking outside
A short form that blocks the pageDialogFocus trapped, Escape closes
A side panel for filters or editsSheetSlides from any edge
A bottom sheet on mobileDrawerA Sheet from the bottom edge
An iOS-style list of actionsMobile Action SheetSeparate Cancel row
A menu of actions on a buttonDropdown MenuShortcuts, submenus, typeahead
A right-click menuContext MenuOpens at the pointer or on long press
A small panel anchored to a buttonPopoverNon-modal
Preview a person or link on hoverHover CardAlso opens on keyboard focus
A hint on an icon buttonTooltipHover and focus only
Preview a record beside a listPeek PanelNon-modal, page stays usable
Notifications behind a bellNotification InboxUnread count in the button name
A keyboard shortcuts cheat sheetKeyboard ShortcutsOpens 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-shortcuts

Components 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-dialog
  • Command 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-dialog
  • Destructive 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-destructive
  • Right 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-menu
  • Shadcn 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/dialog
  • Bottom 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/drawer
  • Shadcn 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-menu
  • A 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-card
  • An 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-sheet
  • A 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-inbox
  • A 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-panel
  • A 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/popover
  • Slide-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/sheet
  • React 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/tooltip
  • React 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

  • React 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.