fix: use ComponentPropsWithoutRef for native element props

This commit is contained in:
p-sw 2024-05-19 11:07:40 +09:00
parent bd19c4e837
commit caf28f340a

View File

@ -26,7 +26,7 @@ const variants = vcn({
}); });
export interface ButtonProps export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>, extends Omit<React.ComponentPropsWithoutRef<"button">, "className">,
VariantProps<typeof variants> {} VariantProps<typeof variants> {}
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>( const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(