On this page
Overlays
Overlay components built on Radix UI - modals, drawers, popovers, tooltips, and dropdown menus. Fully accessible with focus management.
import { Modal, Drawer, Popover } from "@ninna-ui/overlays";pnpm add @ninna-ui/overlays@latestIncludes
@ninna-ui/core. CSS setup required.View source Package features
- 5 overlay components powered by Radix UI
- Automatic focus trapping and restoration
- Keyboard navigation (Escape to close)
- Scroll lock on body when open
- Accessible ARIA dialog/menu patterns
- Controlled and uncontrolled modes
Components
5 components with shared tokens, typed APIs, and light and dark mode support.
Modal
Dialog overlay with header, body, footer, and close button. Focus-trapped and dismissible.
Drawer
Slide-in panel from any edge with multiple sizes and placements.
Popover
Floating content panel anchored to a trigger element.
Tooltip
Lightweight hover/focus tooltip with arrow and placement options.
DropdownMenu
Context menu with items, checkboxes, radio groups, and submenus.
Quick start
import { Modal, Drawer, Popover } from "@ninna-ui/overlays";