Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
Raw History Blame Contribute Delete
426 Bytes
import clsx from 'clsx';
import './style.scss';
const FormTextarea = ( {
className = '',
isError = false,
isValid = false,
children = undefined,
forwardedRef = undefined,
...otherProps
} ) => (
<textarea
{ ...otherProps }
className={ clsx( className, 'form-textarea', {
'is-error': isError,
'is-valid': isValid,
} ) }
ref={ forwardedRef }
>
{ children }
</textarea>
);
export default FormTextarea;