@carbon/ibm-products
Version:
Carbon for IBM Products
35 lines (29 loc) • 921 B
JavaScript
/**
* Copyright IBM Corp. 2020, 2025
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
var index = require('../../_virtual/index.js');
var React = require('react');
const NavItemLink = /*#__PURE__*/React.forwardRef(function NavItemLink(props, ref) {
const {
element,
...rest
} = props;
return /*#__PURE__*/React.createElement(element, {
...rest,
ref
});
});
NavItemLink.displayName = 'NavItemLink';
NavItemLink.propTypes = {
/** @type {elementType} The base element to use to build the link. Defaults to `a`, can also accept alternative tag names or custom components like `Link` from `react-router`. */
element: index.default.elementType
};
NavItemLink.defaultProps = {
element: 'a'
};
exports.default = NavItemLink;