# itsa-react-anchorbutton

> Just a standard simple styling of the anchor-element into button-alike

Latest version **16.0.8** (published 2018-10-04) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install itsa-react-anchorbutton
pnpm add itsa-react-anchorbutton
yarn add itsa-react-anchorbutton
bun add itsa-react-anchorbutton
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 16.0.8 |
| Published | 2018-10-04 |
| First published | 2016-07-19 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5 |
| Dependencies | 3 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | itsasbreuk |
| Keywords | itsasbreuk, itsa, react, react-component, anchor, anchorbutton, button |

## Links

- npm: https://www.npmjs.com/package/itsa-react-anchorbutton
- Repository: https://github.com/ItsAsbreuk/itsa-react-anchorbutton
- Homepage: https://github.com/ItsAsbreuk/itsa-react-anchorbutton#readme
- Issues: https://github.com/ItsAsbreuk/itsa-react-anchorbutton/issues
- npm.io page: https://npm.io/package/itsa-react-anchorbutton

## Dependencies (3)

- [itsa-dom](https://npm.io/package/itsa-dom.md) ^1.2.2
- [itsa-utils](https://npm.io/package/itsa-utils.md) ^1.4.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.6.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 16.0.8 (latest) — 2018-10-04
- 16.0.7 — 2018-08-23
- 16.0.6 — 2017-11-11
- 16.0.4 — 2017-11-06
- 16.0.3 — 2017-07-20
- 16.0.2 — 2017-06-26
- 16.0.1 — 2017-06-26
- 16.0.0 — 2017-06-22
- 15.0.17 — 2016-09-02
- 15.0.16 — 2016-08-25
- 15.0.15 — 2016-08-24
- 15.0.14 — 2016-08-24
- 15.0.13 — 2016-08-24
- 15.0.12 — 2016-08-24
- 15.0.11 — 2016-08-24
- … 11 more at https://npm.io/package/itsa-react-anchorbutton/versions

## README

[![Build Status](https://travis-ci.org/ItsAsbreuk/itsa-react-anchorbutton.svg?branch=master)](https://travis-ci.org/ItsAsbreuk/itsa-react-anchorbutton)

Just a simple react-component that styles the anchor-element into a nice button.

And just some nice extra features:
* you can disable the anchor-functionality by setting `this.props.disabled` to `true`
* you can give it the initial focus, by specifying `this.props.autoFocus` to `true`


## How to use:

```js
"use strict";

require("itsa-react-anchorbutton/css/component.scss");

const React = require("react"),
    ReactDOM = require("react-dom"),
    Component = require("itsa-react-anchorbutton");

const props = {
    autoFocus: true,
    href: "http://itsaserver.io"
};

const ContainerComponent = React.createClass({
    render() {
        return (
            <Component {...this.props} >
                Click me and visit http://itsaserver.io
            </Component>
        );
    }
});

ReactDOM.render(
    <ContainerComponent {...props} />,
    document.getElementById("component-container")
);
```

## About the css

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

1. You can use the css-files inside the `css`-folder.
2. You can use: `Component = require("itsa-react-anchorbutton/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](http://projects.itsasbreuk.nl/react-components/itsa-anchorbutton/component.html)

[API](http://projects.itsasbreuk.nl/react-components/itsa-anchorbutton/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

---
_Source: https://npm.io/package/itsa-react-anchorbutton · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
