@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
13 lines • 893 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import React from 'react';
const Link = React.forwardRef(function Link(props, ref) {
return (_jsx("a", { ref: ref, "aria-current": props['aria-current'], "aria-describedby": props['aria-describedby'], "aria-disabled": props['aria-disabled'], "aria-label": props['aria-label'], className: props.className, "data-testid": props.dataTestId, draggable: props.draggable, href: props.url, role: props.role, target: props.target, onClick: props.onClick, onFocus: props.onFocus, onMouseEnter: props.onMouseEnter, onMouseLeave: props.onMouseLeave, children: props.children }));
});
const Image = React.forwardRef(function Image(props, ref) {
return (_jsx("img", { ref: ref, ...props, alt: props.alt || '' }));
});
export const defaultGenericComponents = {
LINK: Link,
IMAGE: Image,
};
//# sourceMappingURL=defaultGenericComponents.js.map