fix: use ComponentPropsWithoutRef for native element props
This commit is contained in:
parent
bd19c4e837
commit
caf28f340a
@ -26,7 +26,7 @@ const variants = vcn({
|
||||
});
|
||||
|
||||
export interface ButtonProps
|
||||
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||
extends Omit<React.ComponentPropsWithoutRef<"button">, "className">,
|
||||
VariantProps<typeof variants> {}
|
||||
|
||||
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
||||
|
Loading…
x
Reference in New Issue
Block a user