UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

22 lines 1.19 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.SkeletonStandAlone = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = __importDefault(require("react")); const aria_1 = require("../../utils/aria/aria"); const skeleton_styled_1 = require("./skeleton.styled"); const SkeletonStandAloneComponent = ({ dataTestId = 'skeleton', duration = '1.2s', ...props }, ref) => { const ariaProps = (0, aria_1.pickAriaProps)(props); return ((0, jsx_runtime_1.jsx)(skeleton_styled_1.SkeletonStyled, { ref: ref, "$height": props.height, "$width": props.width, "data-testid": dataTestId, duration: duration, styles: props.styles, ...ariaProps })); }; /** * @description * Skeleton coponents is a loading component that can be used to show a loading state of a component. * @param {React.PropsWithChildren<ISkeletonStandAlone>} props * @returns {JSX.Element} */ exports.SkeletonStandAlone = react_1.default.forwardRef(SkeletonStandAloneComponent); //# sourceMappingURL=skeletonStandAlone.js.map