import clsx from 'clsx'; import { IColorsProps, IEditorProps } from './commonInterfaces'; import Label from './Label'; interface TextInputProps extends IEditorProps, IColorsProps, Omit, 'className' | 'title'> { dense?: boolean allowEnter?: boolean } function preventEnterCapture(event: React.KeyboardEvent) { if (event.key === 'Enter') { event.preventDefault(); } } function TextInput({ id, label, dense, tooltip, noBorder, noOutline, allowEnter, disabled, dimensions = 'w-full', colors = 'clr-input', onKeyDown, ...restProps }: TextInputProps) { return (
); } export default TextInput;