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-pivottable-plus

v1.0.18

Published

A React-based pivot table with grouping and modern UI (Tailwind, Radix, Shadcn)

Readme

react-pivottable-plus

NPM Version License: MIT React 19

La solución definitiva de Tablas Dinámicas para el ecosistema moderno de React.

react-pivottable-plus es una versión premium y mantenida de react-pivottable, rediseñada para ofrecer una experiencia de usuario excepcional con soporte nativo para Tailwind CSS, Radix UI y Shadcn.

🌐 Enlaces Rápidos

🚀 Por qué elegir esta versión?

A diferencia de otros forks estancados, react-pivottable-plus ofrece:

  • Soporte React 19: Construido sobre los estándares más recientes.
  • UI de Próxima Generación: Renderizadores modernos integrados.
  • Paginación Inteligente: Rendimiento fluido con grandes conjuntos de datos.
  • Configuración Cero: Implementación en segundos con valores por defecto robustos.

📦 Instalación

npm install --save react-pivottable-plus react react-dom

🛠️ Uso Básico (Zero Config)

Gracias a las últimas optimizaciones, implementar la tabla dinámica es más sencillo que nunca. La mayoría de las propiedades ya tienen valores por defecto inteligentes.

"use client";

import React, { useState } from 'react';
import PivotTableUI from 'react-pivottable-plus'; // Importación directa
import 'react-pivottable-plus/pivottable.css';

const data = [
  { producto: "Manzana", categoria: "Fruta", ventas: 100 },
  { producto: "Pera", categoria: "Fruta", ventas: 150 },
];

function App() {
  // Solo necesitas gestionar el estado si quieres persistir la configuración
  const [state, setState] = useState({});
  
  return (
    <PivotTableUI
      data={data}
      onChange={s => setState(s)}
      {...state}
    />
  );
}

🌈 Uso de Renderizadores Modernos

La librería incluye renderizadores premium listos para usar. No necesitas configurarlos manualmente, solo indica el nombre si ya los has incluido en el objeto renderers, o pásalos directamente:

import { TailwindUI } from 'react-pivottable-plus/renderers/TailwindUI';

// En tu componente:
<PivotTableUI
  data={data}
  renderers={{ Table: TailwindUI }} // Sobrescribe el renderizador por defecto
  {...state}
/>

📑 Propiedades Principales (Todas Opcionales)

| Propiedad | Tipo | Por Defecto | Descripción | | :--- | :--- | :--- | :--- | | data | Array / Object | [] | Los datos a resumir. | | rows | Array | [] | Atributos para las filas. | | cols | Array | [] | Atributos para las columnas. | | vals | Array | [] | Atributos para los valores calculados. | | aggregatorName | String | "Count" | Nombre del agregador inicial. | | rendererName | String | "Table" | Nombre del renderizador inicial. | | pagination | Boolean | false | Activa el pie de página con paginación. | | pageSize | Number | 20 | Cantidad de registros por página. |


Este proyecto es un fork mantenido de react-pivottable con el objetivo de proporcionar una experiencia de usuario superior y compatibilidad con las últimas versiones de React.

✍️ Créditos y Autoría

Esta versión moderna y extendida (react-pivottable-plus) ha sido desarrollada y mantenida por Jasp402, quien ha liderado la implementación de las nuevas interfaces (Tailwind, Shadcn, Radix), la actualización a React 19 y la optimización del motor de arrastre y filtrado.