Componentdata0.59 KB gzipZero dependencies

Refund Card

Refund status card with amount and reason.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add refund-card

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { RefundCard } from "@/components/ui/refund-card"; <RefundCard />

Source code

refund-card.tsx + 1 helper

Zero 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 />
PropTypeDescription
orderIdstringConfigures order id. (Default: "")
amountstringConfigures amount. (Default: "")
reasonstringConfigures reason.
status"pending" | "approved" | "rejected" | "completed"Semantic status indicator. (Default: "pending")