UNPKG

@carbon/react

Version:

React components for the Carbon Design System

42 lines (40 loc) 1.5 kB
/** * 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 classNames from "classnames"; import "react"; import PropTypes from "prop-types"; import { jsx, jsxs } from "react/jsx-runtime"; //#region src/components/Pagination/Pagination.Skeleton.tsx /** * Copyright IBM Corp. 2016, 2023 * * 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 PaginationSkeleton({ className, ...rest }) { const prefix = usePrefix(); return /* @__PURE__ */ jsxs("div", { className: classNames(`${prefix}--pagination`, `${prefix}--skeleton`, className), ...rest, children: [/* @__PURE__ */ jsxs("div", { className: `${prefix}--pagination__left`, children: [ /* @__PURE__ */ jsx(SkeletonText_default, { width: "70px" }), /* @__PURE__ */ jsx(SkeletonText_default, { width: "35px" }), /* @__PURE__ */ jsx(SkeletonText_default, { width: "105px" }) ] }), /* @__PURE__ */ jsx("div", { className: `${prefix}--pagination__right ${prefix}--pagination--inline`, children: /* @__PURE__ */ jsx(SkeletonText_default, { width: "70px" }) })] }); } PaginationSkeleton.propTypes = { className: PropTypes.string }; //#endregion export { PaginationSkeleton as default };