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

17 lines 984 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; import { ROLES } from '../../types/role/role'; // styles import { ThirdPartyAnimationStyled } from './thirdPartyAnimation.styled'; const ThirdPartyAnimationStandAloneComponent = ({ dataTestId = 'third-party-animation', height, width, ...props }, ref) => { const emptyAriaLabel = props['aria-label'].length === 0; return (_jsx(ThirdPartyAnimationStyled, { ref: ref, "$height": height, "$width": width, "aria-hidden": emptyAriaLabel, "aria-label": props['aria-label'], "data-testid": dataTestId, role: ROLES.IMG })); }; /** * @description * ThirdPartyAnimation component is a component that can be used to create a ThirdPartyAnimation. * @param {React.PropsWithChildren<IThirdPartyAnimationStandAlone>} props * @returns {JSX.Element} */ export const ThirdPartyAnimationStandAlone = React.forwardRef(ThirdPartyAnimationStandAloneComponent); //# sourceMappingURL=thirdPartyAnimationStandAlone.js.map