react-table-component-pallavi
v1.0.1
Published
A simple and customizable react table component
Maintainers
Readme
React Table Component (Pallavi)
Project Title
A customizable and reusable React table component built with love 💜. Easily plug in your data and get a sortable, paginated, and styled table out of the box.
✨ Features
- ✅ Easy to integrate
- 🔄 Supports sorting & pagination
- 🎨 Custom styling support
- 📦 Lightweight & fast
🚀 Installation
Install using npm:
npm install react-table-component-pallavi
## Usage
Here is a basic example of how to use the Table Component with Tailwind CSS:
```jsx
import React from 'react';
import TableComponent from 'react-table-component-pallavi';
const columns = [
{ Header: 'ID', accessor: 'id' },
{ Header: 'Name', accessor: 'name' },
{ Header: 'Email', accessor: 'email' },
];
const data = [
{ id: 1, name: 'Pallavi', email: '[email protected]' },
{ id: 2, name: 'Ankit', email: '[email protected]' },
{ id: 3, name: 'Sneha', email: '[email protected]' },
];
function App() {
return (
<div className="p-4 max-w-4xl mx-auto">
<h1 className="text-2xl font-bold mb-4">User Table</h1>
<TableComponent
columns={columns}
data={data}
className="min-w-full border border-gray-200 rounded-md"
/>
</div>
);
}
export default App;
Made with ❤️ by Pallavi Jain
Email: [email protected]
GitHub: github.com/yourgithubusername