Skip to content
Snippets Groups Projects
FourButtons.js 611 B
Newer Older
  • Learn to ignore specific revisions
  • /** Button Component for GET PUT POST DELETE */
    
    const FourButtons = ({backColor, borderColor, leftMargin, text, func}) => {
        return (
            <button 
                style={{
                    width:70,
                    height:30,
                    backgroundColor:backColor, 
                    color:'white',
                    marginLeft:leftMargin, 
                    borderLeftWidth:4, 
                    borderTopWidth:3,
                    borderColor:borderColor,
                    borderBottomWidth:3}} 
                className='btn' 
                onClick={func}> {text}
            </button>
        )
    }
    
    export default FourButtons