@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
17 lines (16 loc) • 529 B
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
export const handleSlotContent = (hostRef, slotRef, slotName) => {
if (hostRef && slotRef && typeof slotName === 'string') {
const content = hostRef.querySelector(`[slot="${slotName}"]`);
if (content) {
slotRef.appendChild(content);
}
}
};
export const showExpertSlot = (label) => label === '';
export const buildBadgeTextString = (accessKey, shortKey) => {
return accessKey || shortKey || '';
};
//# sourceMappingURL=reuse.js.map