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 446 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getAriaControls = void 0; const getAriaControls = (sections, ariaControls) => { const ariaControlsIds = sections?.map(({ title, ...section }, index) => { return `${ariaControls}${index}${section.id ? `${section.id}` : ''}`; }); return ariaControlsIds; }; exports.getAriaControls = getAriaControls; //# sourceMappingURL=getAriaControls.js.map