interface InputProps {
type: string
value: any
onChange: (e) => void
className?: string
disabled?: boolean
prefixClassname?: string
error?: boolean
[x: string]: any
}
const Group = ({ children, className = '' }) => {
return
{children}
}
const Input = ({
type,
value,
onChange,
className,
error,
wrapperClassName = 'w-full',
disabled,
prefix,
prefixClassName,
suffix,
...props
}: InputProps) => {
return (
{prefix ? (
{prefix}
) : null}
{suffix ? (
{suffix}
) : null}
)
}
Input.Group = Group
export default Input