import type { TextInputProps } from "$/types/InputTypes"; import clsx from "clsx"; import { useId } from "react"; export default function TextInput({ id, className, inputClassName, labelClassName, name, maxLength, spellCheck, placeholder, value, onChange, onKeyDown, disabled }: Readonly){ const componentId = useId(); const activeId = id ?? componentId; return (
onChange?.(e.target.value)} disabled={disabled} spellCheck={spellCheck} onKeyDown={onKeyDown} />
); }