PINBALL // NEXTUI
Card
Arcade card with numbered index, tag badge, title, and description. Chrome borders with parallelogram clip-path shapes.
$
Or install the base component for free:
Live Preview
Open full demoUsage
TSX
<Card card={{ icon: "01", tag: "Core", title: "Visual Engine", description: "Real-time reactive graphics synced to audio." }} />Source
TSX
import { cn } from '@/lib/utils'
import type { CardItem } from '@/types'
interface CardProps {
card: CardItem
className?: string
}
const TAG_CLASS: Record<string, string> = {
magenta: 'card-tag card-tag--magenta',
yellow: 'card-tag card-tag--yellow',
chrome: 'card-tag card-tag--chrome',
green: 'card-tag card-tag--green',
cyan: 'card-tag card-tag--cyan',
}
export function Card({ card, className }: CardProps): React.JSX.Element {
const tagClass = TAG_CLASS[card.tagVariant] ?? 'card-tag card-tag--yellow'
return (
<div className={cn('pinball-card', className)}>
<div className="card-number">{card.icon}</div>
<div className="card-title">{card.title}</div>
<p className="card-description">{card.description}</p>
<span className={tagClass}>{card.tag}</span>
</div>
)
}
Works withNext.js 15React 19Tailwind v4TypeScript 5
More from PINBALL // NEXT
Button
Arcade button with primary, secondary, and ghost variants in three sizes. Magenta accent, chrome borders, uppercase Bungee labels. Renders as a Next.js Link when an href is provided.
Badge
Arcade badge with magenta, yellow, chrome, green, and cyan variants. Bold uppercase labels on dark surfaces.
Text
Polymorphic text component with body, caption, label, and code variants. Bungee for display, Space Grotesk for body.