9 lines
324 B
TypeScript
9 lines
324 B
TypeScript
import { forwardRef, type InputHTMLAttributes } from 'react';
|
|
import { cn } from '@/lib/cn';
|
|
|
|
export const Input = forwardRef<HTMLInputElement, InputHTMLAttributes<HTMLInputElement>>(
|
|
function Input({ className, ...rest }, ref) {
|
|
return <input ref={ref} className={cn('field__input', className)} {...rest} />;
|
|
},
|
|
);
|