Sortable

Description

This component is used in table head components to enable sorting functionality for table data. It allows users to sort the table rows based on the column headers.

This component controls the sortKey and sortOrder query string parameters, which are intended for the server components for server-side data sorting.

Preview

Installation

Add component:

Usage

Code

components/ui/sortable.tsx