Componentmedia0.73 KB gzipZero dependencies
Rsvp Card
Invitation RSVP card with attending toggle and wax stamp.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add rsvp-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { RsvpCard } from "@/components/ui/rsvp-card"; <RsvpCard />Source code
rsvp-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxrsvp-card.tsx60 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface RsvpCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "onToggle"> { eventTitle: string; attending?: boolean; onToggle?: (attending: boolean) => void; className?: string;} export function RsvpCard({ eventTitle, attending = false, onToggle, className, ...props}: RsvpCardProps) {Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { RsvpCard } from "@/components/ui/rsvp-card"; <RsvpCard />| Prop | Type | Description |
|---|---|---|
| eventTitle | string | Configures event title. |
| attending | boolean | Toggles attending. (Default: false) |
| onToggle | (attending: boolean) => void | Callback invoked on toggle. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |