aethex-studio/src/components/aethex/input.tsx
2026-01-27 06:16:41 +00:00

19 lines
393 B
TypeScript

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