Skip to main content

Badge Card

A card component with a gradient accent bar, header with icon/title/count, and a flex-wrap grid of badges. Uses solid gradient styling for the accent bar.

Installation

$ npx shadcn@latest add @orecus/badge-card
Registry:
@orecus/stat-badge@orecus/color-utils@orecus/card

Component

Basic Examples

Badge cards with different categories and colors

🎨

Frontend

4
ReactTypeScriptNext.jsTailwind CSS
⚙️

Backend

4
Node.jsPythonPostgreSQLRedis
🚀

DevOps

4
DockerAWSCI/CDTerraform
🛠️

Tools

3
GitVS CodeFigma

With Icon

Design

4
UI/UXFigmaPrototypingUser Research
📢

Marketing

4
SEOContentAnalyticsCampaigns

Without Icon

Languages

4
JavaScriptTypeScriptPythonRust

Frameworks

4
ReactVueAngularSvelte

Props

PropTypeDefaultDescription
title*stringTitle/name displayed in the header
iconReactNodeIcon or emoji displayed before the title
badges*string[]Array of badge labels to display
colorThemeColor'primary'Theme color for the accent bar gradient (primary, secondary, green, amber, etc.)
animationDelaynumber0Animation delay for staggered entrance animations
classNamestringAdditional CSS classes for the card
badgeClassNamestringAdditional CSS classes for badge items
badgePropsOmit<StatBadgeProps, 'value' | 'className'>Props to pass to each StatBadge component (e.g., variant, size, type, accentBar)
cardPropsOmit<CardProps, 'children' | 'className'>Additional props to pass to the underlying Card component (e.g., animationPreset, hoverEffect, etc.)