mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-01 02:43:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			481 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import React from 'react';
 | |
| import PropTypes from 'prop-types';
 | |
| import './input.scss';
 | |
| 
 | |
| export class Input extends React.Component {
 | |
|     constructor(props){
 | |
|         super(props);
 | |
|     }
 | |
| 
 | |
|     render() {
 | |
|         return (
 | |
|             <input
 | |
|               className="component_input"
 | |
|               {...this.props}
 | |
|               ref={(comp) => { this.ref = comp; }}
 | |
|               />
 | |
|         );
 | |
|     }
 | |
| }
 | |
| 
 | |
| Input.propTypes = {
 | |
|     type: PropTypes.string,
 | |
|     placeholder: PropTypes.string
 | |
| };
 | 
