UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

18 lines (17 loc) 557 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import classnames from "classnames"; /** Text placeholder */ const SkeletonText = /*#__PURE__*/ forwardRef(({ width, height, className, ...props }, ref)=>{ return /*#__PURE__*/ _jsx("span", { ...props, style: { width, height, ...props.style }, className: classnames("bf-skeleton-text", className), ref: ref }); }); SkeletonText.displayName = "Skeleton.Text"; export default SkeletonText;