UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

41 lines (40 loc) • 1.71 kB
import { jsx, jsxs } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import card_skeleton_module from "./card-skeleton.module.js"; import { Skeleton } from "./skeleton.js"; import * as __rspack_external_react from "react"; const CardSkeleton = /*#__PURE__*/ __rspack_external_react.forwardRef(({ lines = 3, className, ...props }, ref)=>/*#__PURE__*/ jsxs("div", { ref: ref, className: cn(card_skeleton_module.card, className), ...props, children: [ /*#__PURE__*/ jsxs("div", { className: card_skeleton_module.header, children: [ /*#__PURE__*/ jsx(Skeleton, { className: card_skeleton_module.title }), /*#__PURE__*/ jsx(Skeleton, { className: card_skeleton_module.subtitle }) ] }), /*#__PURE__*/ jsx("div", { className: card_skeleton_module.content, children: Array.from({ length: lines }, (_, index)=>/*#__PURE__*/ jsx(Skeleton, { className: cn(card_skeleton_module.line, index === lines - 1 && card_skeleton_module.lineShort) }, index)) }), /*#__PURE__*/ jsx("div", { className: card_skeleton_module.footer, children: /*#__PURE__*/ jsx(Skeleton, { className: card_skeleton_module.button }) }) ] })); CardSkeleton.displayName = "CardSkeleton"; export { CardSkeleton }; //# sourceMappingURL=card-skeleton.js.map