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

16 lines 564 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useTooltipAsModalAriaLabel = void 0; const react_1 = require("react"); const useTooltipAsModalAriaLabel = (ref) => { const [ariaLabel, setArialabel] = (0, react_1.useState)(undefined); (0, react_1.useEffect)(() => { if (!ref.current) { return; } setArialabel(ref.current.innerText); }); return ariaLabel; }; exports.useTooltipAsModalAriaLabel = useTooltipAsModalAriaLabel; //# sourceMappingURL=useTooltipAsModalAriaLabel.js.map