Componentdata0.59 KB gzipZero dependencies
Refund Card
Refund status card with amount and reason.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add refund-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { RefundCard } from "@/components/ui/refund-card"; <RefundCard />Source code
refund-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxrefund-card.tsx34 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface RefundCardProps extends React.HTMLAttributes<HTMLDivElement> { orderId: string; amount: string; reason?: string; status: "pending" | "approved" | "rejected" | "completed";} const STATUS = { pending: { label: "Pending", cls: "border-warning/50 bg-warning/10 text-warning" }, approved: { label: "Approved", cls: "border-info/50 bg-info/10 text-info" }, rejected: { label: "Rejected", cls: "border-destructive/50 bg-destructive/10 text-destructive" }, completed: { label: "Completed", cls: "border-success/50 bg-success/10 text-success" },};Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { RefundCard } from "@/components/ui/refund-card"; <RefundCard />| Prop | Type | Description |
|---|---|---|
| orderId | string | Configures order id. (Default: "") |
| amount | string | Configures amount. (Default: "") |
| reason | string | Configures reason. |
| status | "pending" | "approved" | "rejected" | "completed" | Semantic status indicator. (Default: "pending") |