mirror of https://github.com/portainer/portainer
16 lines
329 B
TypeScript
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)}
|
|
/>
|
|
);
|
|
}
|