@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
16 lines • 1.2 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.IllustrationStandAlone = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
// styles
const illustration_styled_1 = require("./illustration.styled");
const IllustrationStandAloneComponent = ({ illustration, customIllustrationStyles, altText, width, height, rotate = '0deg', transitionDuration = '0.2s', dataTestId = 'illustration', 'aria-hidden': ariaHidden, }, ref) => {
const isEmptyAltText = ariaHidden || !altText;
return ((0, jsx_runtime_1.jsx)(illustration_styled_1.IllustrationStyled, { ref: ref, "$height": height, "$width": width, alt: altText, "aria-hidden": isEmptyAltText, customIllustrationStyles: customIllustrationStyles, "data-testid": dataTestId, loading: "lazy", moveRound: rotate, src: illustration, transitionDuration: transitionDuration }));
};
exports.IllustrationStandAlone = react_1.default.forwardRef(IllustrationStandAloneComponent);
//# sourceMappingURL=illustrationStandAlone.js.map