171 bug allow passing refs to inputbutton components (#172)
* Refactor UI components to use ComponentPropsWithRef for improved type safety * Updated dependencies and removed duplicate instance of Tslint since it's already provided in the Next.js config
This commit is contained in:
committed by
GitHub
parent
cdf7cc6f00
commit
0808b91e0d
@@ -37,7 +37,7 @@ const buttonVariants = cva(
|
||||
);
|
||||
|
||||
export interface ButtonProps
|
||||
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
||||
extends React.ComponentPropsWithRef<'button'>,
|
||||
VariantProps<typeof buttonVariants> {
|
||||
asChild?: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user