BeniUI

Data Table

Flexible table components for displaying data. Features include sorting, pagination, selection, and action buttons.

Dependencies: tailwind-merge, clsx, lucide-react

Design 1: Simple Table

Basic table with striped rows option and hover states. Clean and minimal for straightforward data display.

NameEmailRoleDepartment
John Doejohn@example.comAdminEngineering
Jane Smithjane@example.comEditorMarketing
Bob Johnsonbob@example.comViewerSales
Alice Brownalice@example.comEditorDesign
Charlie Wilsoncharlie@example.comAdminEngineering

Design 2: Table with Actions

Feature-rich table with checkbox selection, avatar columns, status badges, and action buttons for each row.

UserStatusRoleActions
JD
John Doe
john@example.com
ActiveAdmin
JS
Jane Smith
jane@example.com
ActiveEditor
BJ
Bob Johnson
bob@example.com
InactiveViewer
AB
Alice Brown
alice@example.com
PendingEditor
CW
Charlie Wilson
charlie@example.com
ActiveAdmin

Design 3: Sortable Table with Pagination

Advanced table with clickable column headers for sorting and pagination controls at the bottom.

Name
Category
Price
Stock
Sales
Bluetooth SpeakerElectronics$69.9975456
Cable Management KitAccessories$19.99150654
Desk OrganizerAccessories$34.9990321
Laptop StandAccessories$49.99120567
Mechanical KeyboardElectronics$149.9930189
Showper page
Showing 1 to 5 of 12

Usage

import { SimpleTable } from "@/components/ui/table";
import { TableWithActions } from "@/components/ui/table";
import { SortableTable } from "@/components/ui/table";

export default function Example() {
  return (
    <div className="space-y-8">
      {/* Simple table for basic data */}
      <SimpleTable />

      {/* Table with selection and actions */}
      <TableWithActions />

      {/* Sortable table with pagination */}
      <SortableTable />
    </div>
  );
}