@carbon/react
Version:
React components for the Carbon Design System
43 lines (41 loc) • 1.33 kB
JavaScript
/**
* Copyright IBM Corp. 2016, 2026
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { usePrefix } from "../../internal/usePrefix.js";
import SkeletonText_default from "../SkeletonText/index.js";
import ButtonSkeleton from "../Button/Button.Skeleton.js";
import classNames from "classnames";
import "react";
import PropTypes from "prop-types";
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/components/FileUploader/FileUploader.Skeleton.tsx
/**
* Copyright IBM Corp. 2016, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
function FileUploaderSkeleton({ className, ...rest }) {
const prefix = usePrefix();
return /* @__PURE__ */ jsxs("div", {
className: classNames(`${prefix}--form-item`, className),
...rest,
children: [
/* @__PURE__ */ jsx(SkeletonText_default, {
heading: true,
width: "100px"
}),
/* @__PURE__ */ jsx(SkeletonText_default, {
width: "225px",
className: `${prefix}--label-description`
}),
/* @__PURE__ */ jsx(ButtonSkeleton, {})
]
});
}
FileUploaderSkeleton.propTypes = { className: PropTypes.string };
//#endregion
export { FileUploaderSkeleton as default };