@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
18 lines (17 loc) • 567 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from "react";
import classnames from "classnames";
/** Rectangular box placeholder */ const SkeletonRect = /*#__PURE__*/ forwardRef(({ width, height, className, ...props }, ref)=>{
return /*#__PURE__*/ _jsx("div", {
...props,
style: {
width,
height,
...props.style
},
className: classnames("bf-skeleton-rect", className),
ref: ref
});
});
SkeletonRect.displayName = "Skeleton.Rect";
export default SkeletonRect;