Skip to content

vittxr/tw-table

Repository files navigation

Summary

...

Installation

  • NPM npm install tw-table

  • YARN yarn add tw-table

Usage

To use the library, start by importing tw-table:

import { TwTable } from 'tw-table';

If you need type definitions from react-table, you can import them as follows:

import { RowSelectionState } from '@tanstack/react-table';

You'll also need to configure Tailwind CSS to generate the necessary styles for this library. To do this, include 'node_modules/tw-table/**/*.{js,ts,jsx,tsx}' in the content array of your tailwind.config.js file.

Your final configuration should look like this:

/** @type {import('tailwindcss').Config} */
export default {
  content: [
    './index.html',
    './src/**/*.{js,ts,jsx,tsx}',
    './node_modules/tw-table/**/*.{js,ts,jsx,tsx}',
  ],
  ...
};

Contribution

...

Releases

No releases published

Packages

No packages published

Languages