Skip to main content
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@latest
Includes @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.

Quick start

import { Modal, Drawer, Popover } from "@ninna-ui/overlays";
Installation and CSS setup