Home Components Table
React Table Components
16 free React tables built with Tailwind CSS and shadcn/ui conventions. Copy the code or install with the shadcn CLI. Great for invoices, pricing comparisons, and simple lists.
Table 1 : Recent orders table with a cart icon per order, coloured status icons and a revenue total footer.Table 2 : User subscription table with vertical cell borders, a shaded header and icon-led status column.Table 3 : Product inventory table with zebra-striped alternating rows and a total value footer.Table 4 : Project tracking table with striped rows and colour-coded status badges for each project.Table 5 : Orders table with an icon next to every column heading, inside a rounded bordered card.Table 6 : Rounded card table with a soft inset shadow on the shaded header and footer rows.Table 7 : Transactions table where clicking a row highlights it and clicking again clears the selection.Table 8 : Product table with striped columns instead of rows, shading every other column.Table 9 : Scrollable transactions table with a fixed-height body and a sticky gradient header row.Table 10 : Scrollable orders table where both the header row and the total footer stay pinned.Table 11 : Two-column key and value table showing product details, with an icon beside each label.Table 12 : Wide employee table that scrolls sideways while the ID and name columns stay fixed on the left.Table 13 : Accounts table with row checkboxes, select-all, rounded status pills and highlighted selected rows.Table 14 : Project management table with row selection, status dot labels and edit and delete icon buttons.Table 15 : Developer leaderboard table with ranked rows, avatars with online status dots and commit counts.Table 16 : Hiring pipeline table with colour-coded stage badges, star ratings and pagination below.
About React Table Components A React table shows rows and columns of data using semantic HTML table elements. Watermelon UI tables are plain React components styled with Tailwind CSS, with Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, and TableCaption parts, and a scroll wrapper for narrow screens. Add one with the shadcn CLI, then map your data to rows.
When to use it Invoices, price lists, and comparison grids. Small read-only lists of records on a dashboard. Spec sheets where each row has the same fields. When to use something else Use Data Table when users need to sort, filter, select, or page through rows. Use Card when each item has a picture or mixed content that does not fit columns. Frequently asked questions What is the difference between a shadcn table and a data table? The table is only styled markup, while a data table adds behavior like sorting, filtering, selection, and pagination on top of it. Start with a table and move to a data table when users need to work with rows.
How do I make a shadcn table responsive? The Table component already wraps the table in a container with horizontal scroll. For small screens you can also hide low-priority columns with responsive classes like hidden md:table-cell.
How do I add a sticky header? Table renders its own overflow-x-auto wrapper, so that div is the scroll container: give it a max height in your local table file, then add sticky top-0 with a background color to TableHeader. The background stops rows from showing through.
How do I make a shadcn table scrollable? Horizontal scroll is built in, because Table wraps the table in a div with overflow-x-auto. For vertical scroll, wrap Table in a div with a fixed height, such as h-96 overflow-y-auto.
How to use React Table Components Start from a React project with Tailwind CSS and shadcn/ui set up. Next.js, Vite, Remix, and Astro all work. Run npx shadcn@latest add https://registry.watermelon.sh/r/table-1.json to add the source files to your project. Import it where you need it, then edit the Tailwind classes and design tokens to match your product. Dependencies installed with it: react-icons.
The code is yours: it lives in your repository, so there is no runtime package to keep updated. Watermelon UI is free and open source under the MIT license.
More: Free React components , UI library alternatives , guides .