The same orders table with no purchases yet.
Your purchases from the last 90 days.
| Order | Date | Status | Total | Actions | |
|---|---|---|---|---|---|
| No orders yet. | |||||
Install with the CLI, or add the packages and paste the source below.
Add Order history to your app with its source-owned dependencies.
npx cronus-ui add order-history
Install the Cronus UI packages, then paste the block below.
Copy the source for Empty. Every class is a semantic token, so it re-themes with your app.
import {Card,CardContent,CardHeader,CardTitle,Table,TableBody,TableCell,TableHead,TableHeader,TableRow,} from "@cronus-ui/ui";export function OrderHistoryEmptyBlock() {return (<Cardrole="region"aria-label="Order history"className="mx-auto w-full max-w-4xl gap-0 pb-0 shadow-md"><CardHeader><CardTitle className="font-display text-lg">Order history</CardTitle><p className="col-span-full text-sm text-fg-secondary">Your purchases from the last 90 days.</p></CardHeader><CardContent className="px-0 pt-2"><Table><TableHeader><TableRow><TableHead className="ps-4 sm:ps-6">Order</TableHead><TableHead>Date</TableHead><TableHead className="hidden sm:table-cell">Items</TableHead><TableHead>Status</TableHead><TableHead className="text-end">Total</TableHead><TableHead className="pe-4 text-end sm:pe-6"><span className="sr-only">Actions</span></TableHead></TableRow></TableHeader><TableBody><TableRow><TableCell colSpan={6} className="py-8 text-center text-sm text-fg-tertiary">No orders yet.</TableCell></TableRow></TableBody></Table></CardContent></Card>);}
Your purchases from the last 90 days.
| Order | Date | Status | Total | Actions | |
|---|---|---|---|---|---|
| No orders yet. | |||||