mirror of
https://github.com/khairul169/code-share.git
synced 2025-06-17 17:19:34 +07:00
26 lines
494 B
TypeScript
26 lines
494 B
TypeScript
|
import React from "react";
|
||
|
import { cn } from "~/lib/utils";
|
||
|
|
||
|
type Props = React.ComponentProps<"div">;
|
||
|
|
||
|
const Card = ({ className, ...props }: Props) => {
|
||
|
return (
|
||
|
<div
|
||
|
className={cn(
|
||
|
"bg-background border border-white/20 rounded-lg p-4",
|
||
|
className
|
||
|
)}
|
||
|
{...props}
|
||
|
/>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export const CardTitle = ({
|
||
|
className,
|
||
|
...props
|
||
|
}: React.ComponentProps<"p">) => (
|
||
|
<p className={cn("text-2xl mb-8", className)} {...props} />
|
||
|
);
|
||
|
|
||
|
export default Card;
|