anephenix/ui

View on GitHub
src/components/textarea/Textarea.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React, { forwardRef } from 'react';

const Textarea = forwardRef(function textarea(
    { className, defaultValue, placeholder, name, onChange },
    ref
) {
    return (
        <textarea
            ref={ref}
            name={name}
            className={className}
            defaultValue={defaultValue}
            onChange={onChange}
            placeholder={placeholder}
        />
    );
});
            
export default Textarea;