Skip to content
OwnlyPlans

Element

Sortable Data Table

A searchable table with click-to-sort columns, status pills, pagination and an empty state. Accessible and mobile-friendly.

Remix

Preview and code

Markdown
Other

Install

shadcn CLI
npx shadcn@latest add https://ownlyplans.com/r/bhaskar/sortable-data-table.json

Adds the React files to components/ownlyplans/ in a project set up with shadcn and Tailwind CSS. Or copy them from the Code tab.

About

The table almost every dashboard needs. Click a column header to sort (click again to reverse), type to search across every column, and page through results with a clear “1–4 of 12” count. Headers are real buttons with aria-sort, so keyboard and screen reader users can sort too.

Numbers sort as numbers and dates as dates. On narrow screens the table scrolls sideways inside its card instead of breaking the page. In the React version pass your own rows and column definitions, including a custom cell renderer.

MIT License

Copyright (c) 2026 OwnlyPlans

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Your AI tool
Starter prompt

		

Download the plan