UNPKG

@eccenca/gui-elements

Version:

GUI elements based on other libraries, usable in React application, written in Typescript.

20 lines 1.2 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.TabTitle = void 0; const react_1 = __importDefault(require("react")); const constants_1 = require("../../configuration/constants"); const Button_1 = __importDefault(require("../Button/Button")); /** * Gives control about functionality and layout of the tab titles. */ const TabTitle = ({ text, tooltip, titlePrefix, titleSuffix, large = false, small = false, disabled = false, }) => { return (react_1.default.createElement(Button_1.default, { className: `${constants_1.CLASSPREFIX}-tabtitle`, minimal: true, tabIndex: -1, text: text, tooltip: disabled ? undefined : tooltip, tooltipProps: { rootBoundary: "viewport", }, icon: react_1.default.createElement(react_1.default.Fragment, null, titlePrefix), rightIcon: react_1.default.createElement(react_1.default.Fragment, null, titleSuffix), small: small, large: large, disabled: disabled })); }; exports.TabTitle = TabTitle; exports.default = exports.TabTitle; //# sourceMappingURL=TabTitle.js.map