mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 00:33:54 +08:00
16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import styles from './TextArea.css';
|
|
|
|
const TextArea = ({ className, value = '', ...props }) => (
|
|
<div className={`${styles.textArea} ${className ? className : ''}`}>
|
|
<textarea value={value} {...props} />
|
|
</div>
|
|
);
|
|
|
|
TextArea.propTypes = {
|
|
onChange: PropTypes.func,
|
|
};
|
|
|
|
export default TextArea;
|