mirror of
https://github.com/fccview/cronmaster.git
synced 2026-01-02 02:49:02 -05:00
18 lines
452 B
TypeScript
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';
|