1.0.14 • Published 6 months ago

annotatable-table-component v1.0.14

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago
  1. Import the component:
import { AnnotatedTableComponent } from 'annotatable-table-component';

// 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>[])

This component uses Tailwind CSS for styling. Ensure your project is set up with Tailwind CSS: 1. Install Tailwind CSS:

npm install tailwindcss postcss autoprefixer
npx tailwindcss init

```js
module.exports = {
content: [
 "./src/**/*.{js,jsx,ts,tsx}", // Your app's components
 "./node_modules/annotatable-table-component/**/*.{js,jsx,ts,tsx}", // This component
],
theme: {
 extend: {},
},
plugins: [],
};
1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.6

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago