import React from 'react' export interface InputProps extends React.InputHTMLAttributes { label?: string error?: string helperText?: string } export const Input = React.forwardRef( ({ label, error, helperText, className = '', ...props }, ref) => { return (
{label && ( )} {error && (

{error}

)} {helperText && !error && (

{helperText}

)}
) } ) Input.displayName = 'Input' export interface TextareaProps extends React.TextareaHTMLAttributes { label?: string error?: string helperText?: string } export const Textarea = React.forwardRef( ({ label, error, helperText, className = '', ...props }, ref) => { return (
{label && ( )}