UNPKG

skyroc-ui

Version:

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

20 lines (18 loc) 547 B
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/CardTitle.tsx const CardTitle = React.forwardRef((props, ref) => { const { className, size,...rest } = props; const { title } = cardVariants({ size }); const mergedCls = cn(title(), className); return /* @__PURE__ */ jsx("div", { className: mergedCls, ...rest, ref }); }); CardTitle.displayName = "CardTitle"; //#endregion export { CardTitle };