import Table, {
TableBody,
TableCell,
TableHead,
TableRow,
} from "@/components/ui/table";
const orders = [
{
id: "#1024",
customer: "Olivia Martin",
product: "Wireless Headphones",
status: "Completed",
total: "$398.00",
},
{
id: "#1025",
customer: "Jackson Lee",
product: "Mechanical Keyboard",
status: "Processing",
total: "$149.00",
},
{
id: "#1026",
customer: "Sophia Brown",
product: "USB-C Hub",
status: "Pending",
total: "$267.00",
},
];
export default function TableCustomStylingDemo() {
return (
<div className="w-full overflow-x-auto">
<Table className="rounded-lg min-w-200 border-separate overflow-hidden border border-neutral-300 dark:border-neutral-700">
<TableHead className="bg-muted/50">
<TableRow>
<TableCell className="font-semibold">Order</TableCell>
<TableCell className="font-semibold">Customer</TableCell>
<TableCell className="font-semibold">Product</TableCell>
<TableCell className="font-semibold">Status</TableCell>
<TableCell align="right" className="font-semibold">
Total
</TableCell>
</TableRow>
</TableHead>
<TableBody>
{orders.map((order) => (
<TableRow
key={order.id}
className="hover:bg-neutral-100/80 dark:hover:bg-neutral-900"
>
<TableCell className="font-medium">{order.id}</TableCell>
<TableCell>{order.customer}</TableCell>
<TableCell>{order.product}</TableCell>
<TableCell>{order.status}</TableCell>
<TableCell align="right" className="font-medium">
{order.total}
</TableCell>
</TableRow>
))}
</TableBody>
</Table>
</div>
);
}