veza/apps/web/src/components/base/Input.tsx
2025-12-12 21:34:34 -05:00

24 lines
406 B
TypeScript

import React from 'react';
interface InputProps {
value?: string;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
placeholder?: string;
type?: string;
}
export const Input = ({
value,
onChange,
placeholder,
type = 'text',
}: InputProps) => {
return (
<input
type={type}
value={value}
onChange={onChange}
placeholder={placeholder}
/>
);
};