@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
14 lines • 998 B
JavaScript
import React from "react";
import { CLASSPREFIX as eccgui } from "../../configuration/constants.js";
import Button from "../Button/Button.js";
/**
* Gives control about functionality and layout of the tab titles.
*/
export var TabTitle = function (_a) {
var text = _a.text, tooltip = _a.tooltip, titlePrefix = _a.titlePrefix, titleSuffix = _a.titleSuffix, _b = _a.large, large = _b === void 0 ? false : _b, _c = _a.small, small = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d;
return (React.createElement(Button, { className: "".concat(eccgui, "-tabtitle"), minimal: true, tabIndex: -1, text: text, tooltip: disabled ? undefined : tooltip, tooltipProps: {
rootBoundary: "viewport",
}, icon: React.createElement(React.Fragment, null, titlePrefix), rightIcon: React.createElement(React.Fragment, null, titleSuffix), small: small, large: large, disabled: disabled }));
};
export default TabTitle;
//# sourceMappingURL=TabTitle.js.map