16.0.10 • Published 6 years ago

itsa-react-button v16.0.10

Weekly downloads
69
License
BSD-3-Clause
Repository
github
Last release
6 years ago

Build Status

Interactive button, like a normal button, but with extended behaviour.

Lightweight, focussable, responses to keypresses and will act quicker than the HTMLButtonElement. Meaning, that the onClick-event gets fired on a mouseDown or keyDown event (native HTMLButtonElement emits on mouseUp).

Also, a keyDown event simulates the button as being pressed for at least 300ms, giving the user a better user-experience.

How to use:

const ReactDOM = require("react-dom"),
      Button = require("itsa-react-button");

const handleClick = () => {
    // ...
};

const button = ReactDOM.render(
    <Button buttonText="Press me" onClick={handleClick} />,
    document.getElementById("container")
);

button.focus();

// button.press() will press the button

About the css

You need the right css in order to make use of itsa-react-button. There are 2 options:

  1. You can use the css-files inside the css-folder.
  2. You can use: Component = require("itsa-react-button/lib/component-styled.jsx"); and build your project with webpack. This is needed, because you need the right plugin to handle a requirement of the scss-file.

View live example

API

If you want to express your appreciation

Feel free to donate to one of these addresses; my thanks will be great :)

  • Ether: 0xE096EBC2D19eaE7dA8745AA5D71d4830Ef3DF963
  • Bitcoin: 37GgB6MrvuxyqkQnGjwxcn7vkcdont1Vmg
16.0.10

6 years ago

16.0.9

6 years ago

16.0.8

6 years ago

16.0.7

6 years ago

16.0.6

7 years ago

16.0.5

7 years ago

16.0.4

7 years ago

16.0.3

7 years ago

16.0.2

7 years ago

16.0.1

7 years ago

16.0.0

7 years ago

15.2.35

8 years ago

15.2.34

8 years ago

15.2.33

8 years ago

15.2.32

8 years ago

15.2.31

8 years ago

15.2.30

8 years ago

15.2.29

8 years ago

15.2.28

8 years ago

15.2.27

8 years ago

15.2.26

8 years ago

15.2.25

8 years ago

15.2.24

8 years ago

15.2.23

8 years ago

15.2.22

8 years ago

15.2.21

8 years ago

15.2.20

8 years ago

15.2.19

8 years ago

15.2.18

8 years ago

15.2.17

8 years ago

15.2.16

8 years ago

15.2.15

8 years ago

15.2.14

8 years ago

15.2.13

8 years ago

15.2.12

8 years ago

15.2.11

8 years ago

15.2.10

8 years ago

15.2.9

8 years ago

15.2.8

8 years ago

15.2.7

8 years ago

15.2.6

8 years ago

15.2.5

8 years ago

15.2.4

8 years ago

15.2.3

8 years ago

15.2.2

8 years ago

15.2.1

8 years ago

15.2.0

8 years ago

15.1.1

8 years ago

15.1.0

8 years ago

15.0.0

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago