0.1.2 • Published 4 years ago
@intelligenceindustrielle/react-pushbutton v0.1.2
React-Pushbutton
A styled button that looks like you can push it, much like indutrial ones. Made for React projects by Intelligence Industrielle.
Installation and usage
Install with npm
npm install @intelligenceindustielle/react-pushbutton
Then use it in your app:
import React from 'react';
import PushButton from '@intelligenceindustrielle/react-pushbutton';
class App extends React.Component {
test = () => console.log('Test');
render() {
return <PushButton onClick={test}/>;
}
}
Props
Options to customize the button:
buttonSize
: the width/height of the button in px - 250px by defaultbuttonColor
: the background color of the button - #25871E green by defaultbuttonText
: the text in your button. Can be either plain text or an image stored onlinefontSize
: optionnal font size for the button textonClick
: the function triggered by the button
License
Apache-2.0 Licensed. Copyright (c) Intelligence Industrielle 2021.