UNPKG

skyroc-ui

Version:

A modern React UI component library built on Radix UI and Tailwind CSS

20 lines (18 loc) 557 B
import { cn } from "../../lib/utils.js"; import { cardVariants } from "./card-variants.js"; import { forwardRef } from "react"; import { jsx } from "react/jsx-runtime"; //#region src/components/card/CardHeader.tsx const CardHeader = forwardRef((props, ref) => { const { className, size,...rest } = props; const { header } = cardVariants({ size }); const mergedCls = cn(header(), className); return /* @__PURE__ */ jsx("div", { className: mergedCls, ...rest, ref }); }); CardHeader.displayName = "CardHeader"; //#endregion export { CardHeader };