aboutsummaryrefslogtreecommitdiff
path: root/src/components/UI/Input.tsx
diff options
context:
space:
mode:
authorzwlucas <lucas.fariamo08@gmail.com>2026-06-05 20:52:54 +0000
committerzwlucas <lucas.fariamo08@gmail.com>2026-06-05 20:52:54 +0000
commit09f964451d7d92e9891430ec4595c1276d486aab (patch)
tree28da4483f5c28924a8c47fceb648b1baebe88224 /src/components/UI/Input.tsx
downloadyace-master.tar.gz
yace-master.zip
feat: uploadHEADmaster
Signed-off-by: zwlucas <lucas.fariamo08@gmail.com>
Diffstat (limited to 'src/components/UI/Input.tsx')
-rw-r--r--src/components/UI/Input.tsx23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/components/UI/Input.tsx b/src/components/UI/Input.tsx
new file mode 100644
index 0000000..e6a84c0
--- /dev/null
+++ b/src/components/UI/Input.tsx
@@ -0,0 +1,23 @@
+interface InputProps {
+ value: string | number
+ onChange: (value: string) => void
+ placeholder?: string
+ type?: string
+ min?: number
+ max?: number
+}
+
+export default function Input({ value, onChange, placeholder, type = 'text', min, max }: InputProps) {
+ return (
+ <input
+ type={type}
+ value={value}
+ placeholder={placeholder}
+ min={min}
+ max={max}
+ onChange={(e) => onChange(e.target.value)}
+ className="w-full h-7 px-2 rounded-md text-ui-sm text-text-primary bg-editor-surface border transition-all duration-150 outline-none placeholder:text-text-muted focus:border-accent"
+ style={{ borderColor: 'var(--color-panel-border)' }}
+ />
+ )
+}