@s-ui/react-atom-button
Version:
Atom Element: SUI button
19 lines • 689 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["children"];
import { forwardRef } from 'react';
import PropTypes from 'prop-types';
import { jsx as _jsx } from "react/jsx-runtime";
var ButtonLink = /*#__PURE__*/forwardRef(function (_ref, ref) {
var children = _ref.children,
props = _objectWithoutPropertiesLoose(_ref, _excluded);
return /*#__PURE__*/_jsx("a", _extends({}, props, {
ref: ref,
children: children
}));
});
ButtonLink.displayName = 'ButtonLink';
ButtonLink.propTypes = {
children: PropTypes.node
};
export default ButtonLink;