import React from 'react'; import { type InputProps as JoyInputProps } from '@mui/joy'; import { type MotionProps } from 'framer-motion'; export type { JoyInputProps }; export type InputProps = { label?: React.ReactNode; helperText?: React.ReactNode; error?: boolean; enableClearable?: boolean; /** * Disables the password toggle button for password inputs. * This has no effect when type is not "password". */ disableTogglePasswordButton?: boolean; /** * NOTE: 빈 값으로 시작하는 controlled 필드는 `undefined`가 아니라 `null`을 넘겨야 한다. * `undefined`를 넘기면 마운트 시점에 uncontrolled로 판정되어 이후 외부에서의 값 변경이 반영되지 않는다. */ value?: JoyInputProps['value'] | null; } & Omit & MotionProps; declare const Input: React.ForwardRefExoticComponent & React.RefAttributes>; export { Input };