docs/components/display/ProjectCard

ProjectCard

Project summary card with metadata.

import { ProjectCard } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#More Examples

With Icon

<ProjectCard
  name="Terminal Project"
  icon="terminal"
  subtitle="5 sessions · 1d ago"
  description="/workspace/terminal-app"
  color="#10B981"
/>

Minimal Info

<ProjectCard name="Simple Project" color="#EF4444" />

#Props

PropTypeDefaultDescription
name *stringProject name (required).
iconstringIcon name to display. If omitted, shows initials.
colorstring'var(--sk-accent)'Background color for the icon area.
subtitlestringSubtitle text below the name.
descriptionstringDescription text below the subtitle.
pinnedbooleanfalseWhether the project is pinned.
onTogglePin() => voidCallback when pin button is clicked.
onClick() => voidCallback when card is clicked.
classstringAdditional CSS classes.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-accent
  • --sk-bg-hover
  • --sk-bg-primary
  • --sk-border
  • --sk-font-md
  • --sk-font-sm
  • --sk-font-xs
  • --sk-radius-md
  • --sk-radius-sm
  • --sk-space-2xl
  • --sk-space-md
  • --sk-space-sm
  • --sk-space-xs
  • --sk-text-muted
  • --sk-text-primary
  • --sk-transition-fast