Ga naar hoofdinhoud

Cards

Reusable card components for displaying entities in grid or list layouts.

ComponentDescription
CnCardGeneric prop-driven card with title, icon, description, labels, stats, and active state

Existing Card Components

The library also includes card components in other categories:

  • CnObjectCard (Data Display) — Schema-driven card that derives title, description, and metadata from a JSON Schema configuration
  • CnItemCard (Data Display) — Compact card for sidebar list items with icon, title, and actions
  • CnCardGrid (Data Display) — Responsive CSS grid layout for card instances

When to Use Which Card

CardUse When
CnCardYou know the fields at build time and want direct prop control (title, stats, labels, active state)
CnObjectCardFields are determined at runtime from a JSON Schema (schema-driven views)
CnItemCardYou need a minimal card for sidebar lists (icon + title + slot)