返回 oh-my-ppt
Card.tsx
根目录 / src / renderer / src / components / ui / Card.tsx
1 import { cn } from '@renderer/lib/utils'
2 import React from 'react'
3
4 export function Card({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
5 return (
6 <div
7 className={cn(
8 'soft-card rounded-lg bg-card text-card-foreground',
9 className
10 )}
11 {...props}
12 />
13 )
14 }
15
16 export function CardHeader({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
17 return <div className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />
18 }
19
20 export function CardTitle({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) {
21 return <h3 className={cn('text-lg font-semibold leading-none tracking-tight', className)} {...props} />
22 }
23
24 export function CardContent({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
25 return <div className={cn('p-6 pt-0', className)} {...props} />
26 }
27
27 lines Plain Text