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! ⚡

35 lines (34 loc) • 1.53 kB
import { jsx, jsxs } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import list_skeleton_module from "./list-skeleton.module.js"; import { Skeleton } from "./skeleton.js"; import * as __rspack_external_react from "react"; const ListSkeleton = /*#__PURE__*/ __rspack_external_react.forwardRef(({ items = 5, showAvatar = true, className, ...props }, ref)=>/*#__PURE__*/ jsx("div", { ref: ref, className: cn(list_skeleton_module.list, className), ...props, children: Array.from({ length: items }, (_, index)=>/*#__PURE__*/ jsxs("div", { className: list_skeleton_module.item, children: [ showAvatar ? /*#__PURE__*/ jsx(Skeleton, { className: list_skeleton_module.avatar }) : null, /*#__PURE__*/ jsxs("div", { className: list_skeleton_module.text, children: [ /*#__PURE__*/ jsx(Skeleton, { className: list_skeleton_module.primary }), /*#__PURE__*/ jsx(Skeleton, { className: list_skeleton_module.secondary }) ] }) ] }, index)) })); ListSkeleton.displayName = "ListSkeleton"; export { ListSkeleton }; //# sourceMappingURL=list-skeleton.js.map