diff --git a/src/lib/types.ts b/src/lib/types.ts index 621f480d7b..6bbdd90943 100644 --- a/src/lib/types.ts +++ b/src/lib/types.ts @@ -1,4 +1,4 @@ -import { ComponentPropsWithRef } from "react"; +import { ComponentPropsWithoutRef, RefAttributes } from "react"; export type IconWeight = | "thin" @@ -8,7 +8,7 @@ export type IconWeight = | "fill" | "duotone"; -export interface IconProps extends ComponentPropsWithRef<"svg"> { +export interface IconProps extends ComponentPropsWithoutRef<"svg">, RefAttributes { alt?: string; color?: string; size?: string | number;