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-wrapper-component

v1.0.2

Published

A React component wrapper package.

Readme

React Wrapper Components

npm version downloads license GitHub stars

A professional collection of React wrapper components designed for modern web applications. Built with performance, accessibility, and developer experience in mind.

✨ Features

  • 🚀 DynamicModalButton - Flexible modal system with customizable triggers
  • 📊 ModernTable - Responsive data table with sorting and custom actions
  • 📝 PaginationWrapper - Smart pagination with dynamic page ranges
  • 🎨 Tailwind Integration - Beautiful default styling with Tailwind CSS
  • 🌙 Dark Mode Support - Built-in dark mode compatibility
  • Accessibility - ARIA attributes and keyboard navigation
  • 📱 Responsive Design - Mobile-first approach
  • 🔧 Highly Customizable - Extensive styling and behavior options

📦 Installation

# npm
npm install react-wrapper-components

# yarn
yarn add react-wrapper-components

# pnpm
pnpm add react-wrapper-components

🔧 Requirements

  • React 16.8+
  • Tailwind CSS 3.0+
  • Node.js 14+

💻 Usage

DynamicModalButton

Create modals with custom triggers and content:

import { DynamicModalButton } from "react-wrapper-components";

function App() {
  return (
    <DynamicModalButton
      buttonText="Open Settings"
      className="bg-blue-500 hover:bg-blue-600"
      modalClassName="max-w-2xl"
    >
      <div className="p-6">
        <h2>Settings</h2>
        <p>Modal content goes here...</p>
      </div>
    </DynamicModalButton>
  );
}

ModernTable

Display data with sorting and custom actions:

import { ModernTable } from "react-wrapper-components";

const columns = [
  { key: "id", label: "ID" },
  { key: "name", label: "Name" },
  { key: "email", label: "Email" },
];

const data = [
  { id: 1, name: "John Doe", email: "[email protected]" },
  { id: 2, name: "Jane Smith", email: "[email protected]" },
];

function App() {
  return (
    <ModernTable
      columns={columns}
      data={data}
      actions={(row) => <button onClick={() => handleEdit(row)}>Edit</button>}
    />
  );
}

PaginationWrapper

Implement smart pagination for your data:

import { PaginationWrapper } from "react-wrapper-components";

function App() {
  const data = Array.from({ length: 100 }, (_, i) => ({
    id: i + 1,
    name: `Item ${i + 1}`,
  }));

  return (
    <PaginationWrapper data={data} itemsPerPage={10}>
      {(paginatedData) => (
        <div className="space-y-4">
          {paginatedData.map((item) => (
            <div key={item.id}>{item.name}</div>
          ))}
        </div>
      )}
    </PaginationWrapper>
  );
}

📚 API Reference

DynamicModalButton Props

| Prop | Type | Default | Description | | ---------------- | ----------- | ----------------------- | ----------------------- | | children | ReactNode | - | Modal content | | buttonText | string | "Add New" | Text for trigger button | | className | string | "bg-gradient..." | Button custom classes | | modalClassName | string | "backdrop-blur-xl..." | Modal custom classes |

ModernTable Props

| Prop | Type | Default | Description | | ------------ | ------------------------- | ------- | ------------------------ | | columns | Array<Column> | - | Table column definitions | | data | Array<any> | - | Table data | | actions | (row: any) => ReactNode | - | Row actions renderer | | tableClass | string | "" | Table custom classes | | thClass | string | "" | Header cell classes | | tdClass | string | "" | Body cell classes |

PaginationWrapper Props

| Prop | Type | Default | Description | | -------------- | --------------------------------- | ------- | ---------------- | | data | Array<any> | - | Data to paginate | | itemsPerPage | number | - | Items per page | | children | (data: Array<any>) => ReactNode | - | Content renderer |

🛠️ Development

# Clone repository
git clone https://github.com/Soab42/react-wrapper-components.git

# Install dependencies
npm install

# Start development
npm run dev

# Build package
npm run build

# Run tests
npm test

🤝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

See CONTRIBUTING.md for detailed guidelines.

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔍 Troubleshooting

Common Issues

  1. Modal not appearing?

    • Ensure z-index conflicts are resolved
    • Check if portal container exists
  2. Table not responsive?

    • Verify Tailwind CSS installation
    • Check container width constraints
  3. Pagination not working?

    • Confirm data array is properly formatted
    • Verify itemsPerPage prop is set

🆘 Support

🙏 Acknowledgments

  • Thanks to all contributors
  • Inspired by modern React patterns
  • Built with Tailwind CSS