MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / TextField

Function TextField

src/components/kit/TextField.tsx:21–37  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

19});
20
21const TextField = (props: Props) => {
22 const { value, disabled, className, placeholder, type, onChange } = {
23 ...getDefaultProps(),
24 ...props,
25 };
26
27 return (
28 <input
29 className={`${className || ""} w-full border px-3 py-2 rounded-lg dark:border-zinc-700 dark:bg-zinc-800 focus:outline-2`}
30 type={type}
31 disabled={disabled}
32 placeholder={placeholder}
33 value={value}
34 onChange={(e) => onChange(e.target.value)}
35 />
36 );
37};
38
39export default TextField;

Callers

nothing calls this directly

Calls 1

getDefaultPropsFunction · 0.70

Tested by

no test coverage detected