UNPKG

@carbon/react

Version:

React components for the Carbon Design System

41 lines (35 loc) 1.19 kB
/** * 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. */ 'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js'); var React = require('react'); var PropTypes = require('prop-types'); var cx = require('classnames'); var usePrefix = require('../../internal/usePrefix.js'); var SkeletonPlaceholder = require('../SkeletonPlaceholder/SkeletonPlaceholder.js'); const AISkeletonPlaceholder = ({ className, ...other }) => { const prefix = usePrefix.usePrefix(); const AISkeletonPlaceholderClasses = cx({ className, [`${prefix}--skeleton__placeholder--ai`]: true }, className); return /*#__PURE__*/React.createElement(SkeletonPlaceholder.default, _rollupPluginBabelHelpers.extends({ className: AISkeletonPlaceholderClasses }, other)); }; AISkeletonPlaceholder.propTypes = { /** * Add a custom class to the component * to set the height and width */ className: PropTypes.string }; exports.default = AISkeletonPlaceholder;