@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
19 lines (18 loc) • 668 B
JavaScript
"use client";
import { styles } from "./style.mjs";
import Skeleton from "./Skeleton.mjs";
import { jsx } from "react/jsx-runtime";
import { cx } from "antd-style";
//#region src/base-ui/Skeleton/SkeletonAvatar.tsx
const DEFAULT_SIZE = 40;
const SkeletonAvatar = ({ shape = "square", size = DEFAULT_SIZE, width, height, className, ...rest }) => /* @__PURE__ */ jsx(Skeleton, {
className: cx(styles.avatar, className),
height: height ?? size,
radius: shape === "circle" ? "50%" : void 0,
width: width ?? size,
...rest
});
SkeletonAvatar.displayName = "SkeletonAvatar";
//#endregion
export { SkeletonAvatar as default };
//# sourceMappingURL=SkeletonAvatar.mjs.map