Table Grid
A powerful and flexible React table component with modern features
Table Grid
The TableGrid
component is a powerful yet easy-to-use React table solution that helps you display and manage data in a table format. Whether you're building a simple data table or need advanced features, TableGrid has everything you need! 🚀
Quick Start Example
Here's a simple example to get you started:
Features Overview 🎯
- 📝 Type Safety: Full TypeScript support to catch errors early
- 🔍 Search & Filter: Easy to add search functionality
- ↔️ Column Features: Resize, pin, hide, and reorder columns
- 📱 Responsive: Works great on all screen sizes
- 🚄 Virtual Scrolling: Handle large data efficiently
- 🎨 Easy to Style: Multiple built-in themes and custom styling
- 🌐 Server Integration: Built-in support for server-side data
Basic Usage
1. Setting Up Your Table
First, define your data type and create columns:
2. Choose a Style
TableGrid comes with three beautiful styles:
3. Add Search Feature
Enable search with just one prop:
4. Make Columns Resizable
Let users adjust column widths:
Advanced Features
1. Virtual Scrolling for Big Data
Handle thousands of rows efficiently:
2. Server-Side Data Loading
Work with data from your server:
3. Custom Components
Make the table look exactly how you want:
4. Easy Styling
Style your table with simple props:
5. Scroll to Row
Use the table ref to scroll to specific rows:
Best Practices 💡
- Start Simple: Begin with just
columns
anddata
, add features as needed - Use TypeScript: It helps catch errors early and provides better autocomplete
- Enable Virtual Scrolling: For tables with more than 100 rows
- Add Loading States: Always show loading indicators when fetching data
- Responsive Design: Set appropriate
maxHeight
for different screen sizes - Error Handling: Always handle empty states and errors
- Accessibility: Use meaningful labels and handle keyboard navigation
Related Components
Last updated on