UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

11 lines 595 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getScreenReaderText = void 0; const positions_1 = require("../../../types/positions/positions"); const getScreenReaderText = (position, inputValues, onIcon, offIcon) => position === positions_1.POSITIONS.CENTER ? inputValues.centerInputValue : position === positions_1.POSITIONS.RIGHT ? (inputValues.rightInputValue ?? onIcon?.altText) : (inputValues.leftInputValue ?? offIcon?.altText); exports.getScreenReaderText = getScreenReaderText; //# sourceMappingURL=getScreenReaderText.js.map