Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(ui): add Card subcomponents for header, title, description, and content

Steven Enamakelb186c417f63e
diff --git a/app/src/components/ui/Card.tsx b/app/src/components/ui/Card.tsx
index 8ca0bbdf1f..d27a013cef 100644
--- a/app/src/components/ui/Card.tsx
+++ b/app/src/components/ui/Card.tsx
@@ -10,6 +10,22 @@ export interface CardProps {
'data-testid'?: string;
}
+export const CardHeader = ({ children, className }: { children: ReactNode; className?: string }) => (
+ <div className={cn('px-4 pb-0 pt-4', className)}>{children}</div>
+);
+
+export const CardTitle = ({ children, className }: { children: ReactNode; className?: string }) => (
+ <h3 className={cn('text-xs font-semibold tracking-wide text-content-muted', className)}>{children}</h3>
+);
+
+export const CardDescription = ({ children, className }: { children: ReactNode; className?: string }) => (
+ <p className={cn('mt-1 text-xs leading-relaxed text-content-muted', className)}>{children}</p>
+);
+
+export const CardContent = ({ children, className }: { children: ReactNode; className?: string }) => (
+ <div className={cn('p-4', className)}>{children}</div>
+);
+
/**
* A bordered surface with an optional heading and divided body — the shape
* ~470 hand-rolled `rounded-* border bg-*` wrappers across the app are