@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
16 lines • 916 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.TabButton = void 0;
const tslib_1 = require("tslib");
const jsx_runtime_1 = require("react/jsx-runtime");
const helpers_1 = require("../../helpers");
const TabButton = (_a) => {
var { children,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
tabContentRef, ouiaId, parentInnerRef, ouiaSafe } = _a, props = tslib_1.__rest(_a, ["children", "tabContentRef", "ouiaId", "parentInnerRef", "ouiaSafe"]);
const Component = (props.href ? 'a' : 'button');
return ((0, jsx_runtime_1.jsx)(Component, Object.assign({}, (!props.href && { type: 'button' }), { ref: parentInnerRef }, (0, helpers_1.getOUIAProps)(exports.TabButton.displayName, ouiaId, ouiaSafe), props, { children: children })));
};
exports.TabButton = TabButton;
exports.TabButton.displayName = 'TabButton';
//# sourceMappingURL=TabButton.js.map
;