Files
aurak/web/src/components/ui/card.tsx
T
Developer 0a9588abb7 feat: implement QuestionBank CRUD with pagination and template query
- Add pagination support to findAll (page, limit query params)
- Add findByTemplateId method to service
- Add GET /by-template/:templateId endpoint to controller
- Service already includes CRUD for QuestionBank and QuestionBankItem
2026-04-23 17:19:11 +08:00

38 lines
891 B
TypeScript

import React from 'react';
interface CardProps {
children: React.ReactNode;
className?: string;
}
export const Card: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`bg-white rounded-lg border border-slate-200 shadow-sm ${className}`}>
{children}
</div>
);
};
export const CardHeader: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`p-4 border-b border-slate-100 ${className}`}>
{children}
</div>
);
};
export const CardTitle: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<h3 className={`text-lg font-semibold text-slate-800 ${className}`}>
{children}
</h3>
);
};
export const CardContent: React.FC<CardProps> = ({ children, className = '' }) => {
return (
<div className={`p-4 ${className}`}>
{children}
</div>
);
};