@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
10 lines • 869 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
// styles
import { IllustrationStyled } from './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 (_jsx(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 }));
};
export const IllustrationStandAlone = React.forwardRef(IllustrationStandAloneComponent);
//# sourceMappingURL=illustrationStandAlone.js.map