import React from 'react'; import { InputProps, ButtonProps } from '@bigbinary/neetoui'; interface InlineInputProps extends InputProps { className?: string; value?: string; nullable?: boolean; isSaving?: boolean; saveOnBlur?: boolean; clearOnSave?: boolean; submitButtonProps?: ButtonProps; cancelButtonProps?: ButtonProps; handleSubmit: (value: string) => void; handleCancel: (value: string) => void; size?: "small" | "medium" | "large"; } interface FormikInlineInputProps extends InlineInputProps { name: string; handleSubmit?: (value: string) => void; handleCancel?: (value: string) => void; } /** * * An input field with built-in functionality for handling saving and cancelling * * actions via buttons, keypress and blur handlers. * * @example * * import InlineInput from "@bigbinary/neeto-molecules/InlineInput"; * * const TaskInput = () => { * const [taskName, setTaskName] = useState("Sample task"); * const [isEditorOpen, setIsEditorOpen] = useState(false); * * return ( *