@scania/tegel
Version:
Tegel Design System
9 lines (8 loc) • 311 B
TypeScript
/**
* Checks if the provided element has a slotted element
* in the slot with the corresponding slotName
* @param slotName the name of the slot.
* @param element the element to look for the slot within.
*/
declare const hasSlot: (slotName: string, element: HTMLElement) => boolean;
export default hasSlot;