All files / app/ui/form Input.tsx

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19119x           119x 1973x   1973x               119x  
import React, { forwardRef, InputHTMLAttributes, Ref } from 'react';
 
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
    testId?: string;
}
 
const Input = forwardRef((
    { testId, ...rest }: InputProps,
    ref: Ref<HTMLInputElement>
) => (
    <input
        { ...rest }
        data-test={ testId }
        ref={ ref }
    />
));
 
export default Input;