npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-stagger-menu

v1.1.0

Published

A responsive staggered animation menu component for React

Readme

React Stagger Menu

A responsive animated menu component for React with staggered animations and a visual menu builder.

React Stagger Menu Demo

Installation

npm install react-stagger-menu
# or
yarn add react-stagger-menu

Features

  • Responsive design that works on all screen sizes
  • Customizable colors and styling
  • Staggered animation effects using GSAP
  • Visual menu builder for easy customization
  • TypeScript support
  • Multiple positioning options
  • Customizable menu items

Usage

import React from 'react';
import { StaggerMenu } from 'react-stagger-menu';

const App = () => {
  const menuItems = [
    { id: 1, label: 'Frame shape', onClick: () => console.log('Frame shape clicked') },
    { id: 2, label: 'Frame color', onClick: () => console.log('Frame color clicked') },
    { id: 3, label: 'Fabric', onClick: () => console.log('Fabric clicked'), active: true },
    { id: 4, label: 'Else', onClick: () => console.log('Else clicked') },
    { id: 5, label: 'Frodo', onClick: () => console.log('Frodo clicked') },
  ];

  return (
    <div className="app">
      <StaggerMenu
        items={menuItems}
        position="top-right"
        primaryColor="#FF5722"
        onMenuToggle={(isOpen) => console.log('Menu is open:', isOpen)}
      />
    </div>
  );
};

export default App;

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | items | MenuItem[] | Required | Array of menu items to display | | position | 'center' \| 'top-right' \| 'top-left' \| 'bottom-right' \| 'bottom-left' | 'center' | Position of the menu button | | primaryColor | string | '#CC0000' | Primary color for the menu button and active items | | textColor | string | '#333' | Text color for menu items | | hoverBgColor | string | 'rgba(0, 0, 0, 0.52)' | Background color on hover | | hoverTextColor | string | 'white' | Text color on hover | | bgColor | string | '#f9f9f9' | Background color for menu items | | className | string | '' | Additional CSS class for the menu | | buttonSize | 'small' \| 'medium' \| 'large' | 'medium' | Size of the menu button | | onMenuToggle | (isOpen: boolean) => void | undefined | Callback when menu is toggled |

MenuItem Interface

interface MenuItem {
  id: string | number;
  label: string;
  onClick?: () => void;
  active?: boolean;
}

Menu Builder

The package includes a visual menu builder component that allows you to create and customize your menu without writing code.

import React from 'react';
import { MenuBuilder } from 'react-stagger-menu';

const App = () => {
  const handleConfigChange = (config) => {
    console.log('Current menu configuration:', config);
  };

  const handleCodeGenerate = (code) => {
    console.log('Generated code:', code);
    // You could save this to a file or display it to the user
  };

  return (
    <div className="app">
      <h1>Create Your Menu</h1>
      <MenuBuilder
        onConfigChange={handleConfigChange}
        onCodeGenerate={handleCodeGenerate}
      />
    </div>
  );
};

export default App;

MenuBuilder Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | initialConfig | Partial<StaggerMenuProps> | {} | Initial configuration for the menu | | onConfigChange | (config: StaggerMenuProps) => void | undefined | Callback when configuration changes | | onCodeGenerate | (code: string) => void | undefined | Callback when code is generated |

Features of the Menu Builder

  • Visual Editor: See your changes in real-time
  • Item Management: Add, remove, and reorder menu items
  • Appearance Customization: Change colors, position, and size
  • Code Generation: Get ready-to-use React code

License

GPL-3.0