@szum-tech/design-system
Version:
Szum-Tech design system with tailwindcss support
25 lines (22 loc) • 1.14 kB
JavaScript
import { cn } from './chunk-ZD2QRAOX.js';
import { twMerge } from 'tailwind-merge';
import { jsx } from 'react/jsx-runtime';
function Card({ className, ...props }) {
return /* @__PURE__ */ jsx("div", { className: twMerge("bg-app-foreground h-full rounded border border-gray-800", className), ...props });
}
function CardHeader({ className, ...props }) {
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col p-6", className), ...props });
}
function CardTitle({ className, ...props }) {
return /* @__PURE__ */ jsx("h3", { className: twMerge("text-heading-5", className), ...props });
}
function CardDescription({ className, ...props }) {
return /* @__PURE__ */ jsx("p", { className: cn("text-body-2 text-gray-300", className), ...props });
}
function CardContent({ className, ...props }) {
return /* @__PURE__ */ jsx("div", { className: cn("p-6 pt-0", className), ...props });
}
function CardFooter({ className, ...props }) {
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center p-6 pt-0", className), ...props });
}
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };