Componentmedia0.48 KB gzipZero dependencies

Gift Card

Gift card with ribbon stripe, amount and balance bar.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add gift-card

Or install the full npm package:

npm install bigbullui

Usage

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

Source code

gift-card.tsx + 1 helper

Zero 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 />
PropTypeDescription
amountstringConfigures amount.
recipientstringConfigures recipient.
messagestringConfigures message. (Default: "Happy Birthday!")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.