0.1.2 • Published 4 years ago

@intelligenceindustrielle/react-pushbutton v0.1.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

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 default
  • buttonColor: the background color of the button - #25871E green by default
  • buttonText: the text in your button. Can be either plain text or an image stored online
  • fontSize: optionnal font size for the button text
  • onClick: the function triggered by the button

License

Apache-2.0 Licensed. Copyright (c) Intelligence Industrielle 2021.

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago