mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-04 13:35:46 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import React from 'react';
 | 
						|
import PropTypes from 'prop-types';
 | 
						|
 | 
						|
import './textarea.scss';
 | 
						|
 | 
						|
export class Textarea extends React.Component {
 | 
						|
    constructor(props){
 | 
						|
        super(props);
 | 
						|
    }
 | 
						|
 | 
						|
    render() {
 | 
						|
        return (
 | 
						|
            <textarea
 | 
						|
              {...this.props}
 | 
						|
              className='component_textarea'
 | 
						|
              ref={(comp) => { this.ref = comp; }}
 | 
						|
              ></textarea>
 | 
						|
        );
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
Textarea.propTypes = {
 | 
						|
    type: PropTypes.string,
 | 
						|
    placeholder: PropTypes.string
 | 
						|
};
 |