Skip to content

Commit

Permalink
Merge branch 'next' into next-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
huntabyte committed May 30, 2024
2 parents 334218a + 8478fbf commit 4731665
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bits-ui/src/lib/internal/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ export function isHTMLElement(element: unknown): element is HTMLElement {
export function isElement(element: unknown): element is Element {
return element instanceof Element;
}

export function isElementOrSVGElement(element: unknown): element is Element | SVGElement {
return element instanceof Element || element instanceof SVGElement;
}

0 comments on commit 4731665

Please sign in to comment.