mirror of
https://github.com/fccview/cronmaster.git
synced 2026-01-20 11:47:43 -05:00
44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import { HTMLAttributes, forwardRef } from 'react';
|
|
|
|
export const Card = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<div ref={ref} className={`tui-card ${className}`} {...props} />
|
|
)
|
|
);
|
|
Card.displayName = 'Card';
|
|
|
|
export const CardHeader = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<div ref={ref} className={`p-4 border-b border-foreground1 ${className}`} {...props} />
|
|
)
|
|
);
|
|
CardHeader.displayName = 'CardHeader';
|
|
|
|
export const CardTitle = forwardRef<HTMLHeadingElement, HTMLAttributes<HTMLHeadingElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<h3 ref={ref} className={`terminal-font font-bold uppercase ${className}`} {...props} />
|
|
)
|
|
);
|
|
CardTitle.displayName = 'CardTitle';
|
|
|
|
export const CardDescription = forwardRef<HTMLParagraphElement, HTMLAttributes<HTMLParagraphElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<p ref={ref} className={`terminal-font text-sm ${className}`} {...props} />
|
|
)
|
|
);
|
|
CardDescription.displayName = 'CardDescription';
|
|
|
|
export const CardContent = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<div ref={ref} className={`p-4 ${className}`} {...props} />
|
|
)
|
|
);
|
|
CardContent.displayName = 'CardContent';
|
|
|
|
export const CardFooter = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElement>>(
|
|
({ className = '', ...props }, ref) => (
|
|
<div ref={ref} className={`flex items-center p-4 border-t border-foreground1 ${className}`} {...props} />
|
|
)
|
|
);
|
|
CardFooter.displayName = 'CardFooter';
|