portainer/app/react/components/form-components/Input/Input.tsx

16 lines
329 B
TypeScript

import clsx from 'clsx';
import { InputHTMLAttributes } from 'react';
export function Input({
className,
...props
}: InputHTMLAttributes<HTMLInputElement>) {
return (
<input
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
className={clsx('form-control', className)}
/>
);
}