feat(components): add the accordion component

This commit is contained in:
Alexander Navarro 2024-12-26 16:44:32 -03:00
parent 7af58fe829
commit e0ed5a5ddd
10 changed files with 159 additions and 15 deletions

View file

@ -0,0 +1,13 @@
export const qs = (
query: string,
el: Element | Document = document,
): HTMLElement | null => {
return el.querySelector(query);
};
export const qsa = (
query: string,
el: Element | Document = document,
): NodeListOf<HTMLElement> => {
return el.querySelectorAll(query);
};