skyroc-ui
Version:
A modern React UI component library built on Radix UI and Tailwind CSS
23 lines (21 loc) • 590 B
JavaScript
import { cn } from "../../lib/utils.js";
import { cardVariants } from "./card-variants.js";
import React from "react";
import { jsx } from "react/jsx-runtime";
//#region src/components/card/CardContent.tsx
const CardContent = React.forwardRef((props, ref) => {
const { className, flexHeight, size,...rest } = props;
const { content } = cardVariants({
flexHeight,
size
});
const mergedCls = cn(content(), className);
return /* @__PURE__ */ jsx("div", {
className: mergedCls,
...rest,
ref
});
});
CardContent.displayName = "CardContent";
//#endregion
export { CardContent };