Componentmedia0.48 KB gzipZero dependencies
Gift Card
Gift card with ribbon stripe, amount and balance bar.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add gift-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { GiftCard } from "@/components/ui/gift-card"; <GiftCard />Source code
gift-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxgift-card.tsx45 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface GiftCardProps extends React.HTMLAttributes<HTMLElement> { amount: string; recipient: string; message?: string; className?: string;} export function GiftCard({ amount, recipient, message = "Happy Birthday!", className, ...props}: GiftCardProps) {Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { GiftCard } from "@/components/ui/gift-card"; <GiftCard />| Prop | Type | Description |
|---|---|---|
| amount | string | Configures amount. |
| recipient | string | Configures recipient. |
| message | string | Configures message. (Default: "Happy Birthday!") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |