mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
chore(webui): rename
This commit is contained in:
parent
1e2ef871d7
commit
ec0586b135
25 changed files with 724 additions and 0 deletions
25
packages/webui/src/components/ui/Input.tsx
Normal file
25
packages/webui/src/components/ui/Input.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import type React from 'react';
|
||||
|
||||
interface InputProps {
|
||||
value: string;
|
||||
onChange: (value: string) => void;
|
||||
placeholder?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Input: React.FC<InputProps> = ({
|
||||
value,
|
||||
onChange,
|
||||
placeholder,
|
||||
className = '',
|
||||
}) => (
|
||||
<input
|
||||
type="text"
|
||||
value={value}
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
placeholder={placeholder}
|
||||
className={`border rounded px-3 py-2 ${className}`}
|
||||
/>
|
||||
);
|
||||
|
||||
export default Input;
|
||||
Loading…
Add table
Add a link
Reference in a new issue