Command Palette

Search for a command to run...

Docs
Sortable Table

Sortable Table

A sortable and filterable data table with search functionality

Loading...

Installation

Features

  • Sortable Columns: Click on column headers to sort data in ascending/descending order
  • Search Filter: Real-time search across all table fields
  • Responsive Design: Works seamlessly on mobile and desktop
  • Badge Status: Visual status indicators with color coding
  • TypeScript: Fully typed for better developer experience

Props

PropTypeDefaultDescription
dataTableUser[]defaultDataArray of user data to display
titlestring"Employee Directory"Table title shown at the top

TableUser Type

export type TableUser = {
  id: string;
  name: string;
  email: string;
  department: string;
  role: string;
  status: "Active" | "Inactive" | "Pending";
  salary: number;
};