@atlaskit/icon
Version:
An icon is a symbol representing a command, device, directory, or common action.
33 lines (32 loc) • 890 B
JavaScript
/* skeleton.tsx generated by @compiled/babel-plugin v0.36.1 */
import "./skeleton.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { memo } from 'react';
const skeletonStyles = null;
const subtleOpacityStyles = null;
const strongOpacityStyles = null;
const sizeStyles = {
small: "_1bsb7vkz _4t3i7vkz",
medium: "_1bsb1tcg _4t3i1tcg",
large: "_1bsbzwfg _4t3izwfg",
xlarge: "_1bsbckbl _4t3ickbl"
};
/**
* __Skeleton__
*/
const Skeleton = /*#__PURE__*/memo(function Skeleton({
testId,
size = 'medium',
color = 'currentColor',
weight = 'normal'
}) {
return /*#__PURE__*/React.createElement("div", {
"data-testid": testId,
style: {
backgroundColor: color
},
className: ax(["_2rko1q5u _1e0c1o8l", weight === 'strong' ? "_tzy4clii" : "_tzy4nh7s", sizeStyles[size]])
});
});
export default Skeleton;