@gravity-ui/uikit
Version:
Gravity UI base styling and components
15 lines (14 loc) • 668 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { useDefaultProps } from "../theme/useDefaultProps.js";
import { block } from "../utils/cn.js";
import "./Skeleton.css";
const b = block('skeleton');
export function Skeleton(rawProps) {
const { className, style, width, height, qa, animation = 'gradient', variant = 'rect', size, } = useDefaultProps('Skeleton', rawProps);
return (_jsx("div", { className: b({ animation, variant, size }, className), style: {
...(width !== undefined && { width }),
...(height !== undefined && { height }),
...style,
}, "data-qa": qa }));
}
//# sourceMappingURL=Skeleton.js.map