JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q42953F
  • License ISC

A reusable React component for annotatable tables

Package Exports

  • annotatable-table-component

Readme

  1. Import the component and its styles:
import { AnnotatedTableComponent } from 'annotatable-table-component';
import 'annotatable-table-component/styles';

// Use the component
const MyComponent = () => {
  const data = {
    headers: ["Name", "Age", "City"],
    rows: [
      ["Alice", 30, "New York"],
      ["Bob", 25, "San Francisco"]
    ]
  };

  return ;
};

Props

  • data: Object containing headers (string[]) and rows (Array<string | number>[])