interface InputProps { type: string value: any onChange: (e) => void className?: string disabled?: boolean [x: string]: any } const Group = ({ children, className }) => { return (
{children}
) } const Input = ({ type, value, onChange, className, disabled, prefix, suffix, ...props }: InputProps) => { return (
{prefix ? (
{prefix}
) : null}
9 ? 'text-xs' : '' }`} disabled={disabled} {...props} /> {suffix ? ( {suffix} ) : null}
) } Input.Group = Group export default Input