@scania/tegel
Version:
Tegel Design System
9 lines (8 loc) • 328 B
TypeScript
/**
* Checks if the given element is a heading element (h1-h6) or has a role of "heading".
*
* @param {HTMLElement} el - The element to check.
* @returns {boolean} - True if the element is a heading element, false otherwise.
*/
declare const isHeadingElement: (el: HTMLElement) => boolean;
export default isHeadingElement;