UNPKG

skyroc-ui

Version:

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

23 lines (21 loc) 559 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/CardRoot.tsx const CardRoot = React.forwardRef((props, ref) => { const { className, size, split,...rest } = props; const { root } = cardVariants({ size, split }); const mergedCls = cn(root(), className); return /* @__PURE__ */ jsx("div", { className: mergedCls, ...rest, ref }); }); CardRoot.displayName = "CardRoot"; //#endregion export { CardRoot };