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