examples/table-sortable.tsx
"use client";import * as React from "react";import {Table,TableBody,TableCell,TableHead,TableHeader,TableRow,} from "@/components/wensity/table";export function SortableTable() {const [direction, setDirection] = React.useState<"asc" | "desc">("asc");return (<Table><TableHeader><TableRow><TableHeadsortablesortDirection={direction}onSort={() => setDirection((d) => (d === "asc" ? "desc" : "asc"))}>Customer</TableHead><TableHead>Status</TableHead></TableRow></TableHeader><TableBody><TableRow><TableCell>Northwind Labs</TableCell><TableCell>Paid</TableCell></TableRow></TableBody></Table>);}



