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

19 lines 1.23 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultGenericComponents = void 0; const jsx_runtime_1 = require("react/jsx-runtime"); const react_1 = __importDefault(require("react")); const Link = react_1.default.forwardRef(function Link(props, ref) { return ((0, jsx_runtime_1.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_1.default.forwardRef(function Image(props, ref) { return ((0, jsx_runtime_1.jsx)("img", { ref: ref, ...props, alt: props.alt || '' })); }); exports.defaultGenericComponents = { LINK: Link, IMAGE: Image, }; //# sourceMappingURL=defaultGenericComponents.js.map