jattac.libs.web.overflow-menu
v0.0.35
Published
Enterprise-grade, accessible, and highly customizable React overflow menu component. Built on Radix UI and Framer Motion for premium UX and full WAI-ARIA compliance.
Downloads
555
Maintainers
Readme
Jattac Overflow Menu
A high-performance, accessible, and customizable React overflow menu component designed for modern web applications.
The Jattac Overflow Menu provides a robust solution for managing secondary actions in compact UI areas such as table rows, headers, and toolbars. Built on top of Radix UI primitives and animated with Framer Motion, it offers a refined user experience with full WAI-ARIA compliance and a modern frosted-glass aesthetic.
Key Features
- Multi-Level Support: Seamlessly handle nested submenus with recursive rendering and consistent animations.
- Accessibility First: Fully compliant with WAI-ARIA Menu Button patterns, including complete keyboard navigation and focus management.
- Advanced Animations: Smooth, spring-based interactions and staggered entry effects for a professional feel.
- Portal Rendering: Optional DOM portal support to resolve z-index and overflow clipping issues in complex layouts.
- Developer-Centric: Built with TypeScript for strict type safety and a flexible API that supports rich React nodes as menu content.
Installation
Install the package along with its required peer dependencies:
npm install jattac.libs.web.overflow-menu react react-dom framer-motion @radix-ui/react-dropdown-menuQuick Start
The following example demonstrates a basic implementation with three items.
import React from 'react';
import OverflowMenu, { IOverflowMenuItem } from 'jattac.libs.web.overflow-menu';
import 'jattac.libs.web.overflow-menu/dist/index.css';
const App = () => {
const items: IOverflowMenuItem[] = [
{ content: 'Edit', onClick: () => console.log('Edit') },
{ content: 'Settings', onClick: () => console.log('Settings') },
{ content: 'Delete', onClick: () => console.log('Delete') },
];
return <OverflowMenu items={items} />;
};Documentation Index
- Cookbook: Practical Examples - Start here to learn through real-world scenarios.
- Feature Showcase - A high-level overview of available capabilities.
- API Reference - Detailed technical specifications for components and types.
- Configuration Guide - Customization, styling, and global settings.
- Development Guide - Instructions for contributors and local setup.
- Migration Guide - Handling updates and breaking changes.
