import type React from 'react'; import { forwardRef } from 'react'; import { InputWrapper } from '@components/generic/form/InputWrapper'; import { Label } from '@components/generic/form/Label'; type DefaultInputProps = JSX.IntrinsicElements['input']; export interface InputProps extends DefaultInputProps { label?: string; error?: string; action?: JSX.Element; prefix?: string; suffix?: string; } export const Input = forwardRef(function Input( { label, error, action, suffix, className, disabled, ...props }: InputProps, ref, ) { return (
{label &&
); });