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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user