Files
cronmaster/app/_components/GlobalComponents/FormElements/Input.tsx
2025-12-31 20:09:11 +00:00

18 lines
452 B
TypeScript

import { InputHTMLAttributes, forwardRef } from 'react';
export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {}
export const Input = forwardRef<HTMLInputElement, InputProps>(
({ className = '', ...props }, ref) => {
return (
<input
className={`terminal-font ascii-border px-3 py-2 bg-background0 w-full ${className}`}
ref={ref}
{...props}
/>
);
}
);
Input.displayName = 'Input';