Componentticket-stub0.58 KB gzipZero dependencies
Id Card
Employee ID card with hologram shine sweep and barcode.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add id-cardOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { IdCard } from "@/components/ui/id-card"; <IdCard />Source code
id-card.tsx + 1 helperZero third-party dependencies (2 local files shown in tabs below).
tsxid-card.tsx53 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface IdCardProps extends Omit<React.HTMLAttributes<HTMLElement>, "role"> { name: string; role: string; department: string; badgeNumber: string; className?: string;} export function IdCard({ name = "", role = "", department = "", badgeNumber = "",Props
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { IdCard } from "@/components/ui/id-card"; <IdCard />| Prop | Type | Description |
|---|---|---|
| name | string | Form field name submitted during form serialization. (Default: "") |
| role | string | Configures role. (Default: "") |
| department | string | Configures department. (Default: "") |
| badgeNumber | string | Configures badge number. (Default: "") |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |