Componentdata0.68 KB gzipZero dependencies
Order Card
Order status card with step dots and item summary.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add order-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { OrderCard } from "@/components/ui/order-card"; <OrderCard />Source code
order-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxorder-card.tsx64 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface OrderCardProps extends React.HTMLAttributes<HTMLElement> { orderId: string; status: "Processing" | "Shipped" | "Delivered" | "Cancelled"; progress?: number; items?: { label: string; qty: number }[]; className?: string;} export function OrderCard({ orderId, status = "Processing", progress = 0, items,Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { OrderCard } from "@/components/ui/order-card"; <OrderCard />| Prop | Type | Description |
|---|---|---|
| orderId | string | Configures order id. |
| status | "Processing" | "Shipped" | "Delivered" | "Cancelled" | Semantic status indicator. (Default: "Processing") |
| progress | number | Configures progress. (Default: 0) |
| items | { label: string; qty: number }[] | Structured list of items rendered by the component. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |