Mirror: React hooks for accessible, common web interactions. UI super powers without the UI.

Add SVGElement to type

Changed files
+1 -1
src
+1 -1
src/types.ts
···
import type { CSSProperties } from 'react';
-
export interface Ref<T extends HTMLElement> {
readonly current: T | null;
}
···
import type { CSSProperties } from 'react';
+
export interface Ref<T extends HTMLElement | SVGElement> {
readonly current: T | null;
}