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:
Giancarlo Buomprisco
2025-02-19 08:34:20 +07:00
committed by GitHub
parent cdf7cc6f00
commit 0808b91e0d
27 changed files with 759 additions and 636 deletions

View File

@@ -2,7 +2,7 @@ import * as React from 'react';
import { cn } from '../lib/utils';
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
export type InputProps = React.ComponentPropsWithRef<'input'>;
const Input: React.FC<InputProps> = ({
className,