Componentticket-stub0.58 KB gzipZero dependencies

Id Card

Employee ID card with hologram shine sweep and barcode.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add id-card

Or install the full npm package:

npm install bigbullui

Usage

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

Source code

id-card.tsx + 1 helper

Zero 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 />
PropTypeDescription
namestringForm field name submitted during form serialization. (Default: "")
rolestringConfigures role. (Default: "")
departmentstringConfigures department. (Default: "")
badgeNumberstringConfigures badge number. (Default: "")
classNamestringOptional Tailwind or custom CSS classes merged with component styles.