16.0.10 • Published 7 years ago

itsa-react-button v16.0.10

Weekly downloads
69
License
BSD-3-Clause
Repository
github
Last release
7 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

7 years ago

16.0.9

7 years ago

16.0.8

8 years ago

16.0.7

8 years ago

16.0.6

8 years ago

16.0.5

8 years ago

16.0.4

8 years ago

16.0.3

8 years ago

16.0.2

8 years ago

16.0.1

8 years ago

16.0.0

8 years ago

15.2.35

9 years ago

15.2.34

9 years ago

15.2.33

9 years ago

15.2.32

9 years ago

15.2.31

9 years ago

15.2.30

9 years ago

15.2.29

9 years ago

15.2.28

9 years ago

15.2.27

9 years ago

15.2.26

9 years ago

15.2.25

9 years ago

15.2.24

9 years ago

15.2.23

9 years ago

15.2.22

9 years ago

15.2.21

9 years ago

15.2.20

9 years ago

15.2.19

9 years ago

15.2.18

9 years ago

15.2.17

9 years ago

15.2.16

9 years ago

15.2.15

9 years ago

15.2.14

9 years ago

15.2.13

9 years ago

15.2.12

9 years ago

15.2.11

9 years ago

15.2.10

9 years ago

15.2.9

9 years ago

15.2.8

9 years ago

15.2.7

10 years ago

15.2.6

10 years ago

15.2.5

10 years ago

15.2.4

10 years ago

15.2.3

10 years ago

15.2.2

10 years ago

15.2.1

10 years ago

15.2.0

10 years ago

15.1.1

10 years ago

15.1.0

10 years ago

15.0.0

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago