# @trendmicro/react-anchor

> Trend Micro Components: React Anchor

Latest version **0.5.6** (published 2017-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @trendmicro/react-anchor
pnpm add @trendmicro/react-anchor
yarn add @trendmicro/react-anchor
bun add @trendmicro/react-anchor
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.6 |
| Published | 2017-10-06 |
| First published | 2016-12-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Cheton Wu |
| Maintainers | cheton, trendmicro-frontend |
| Keywords | react, react-component, anchor |

## Links

- npm: https://www.npmjs.com/package/@trendmicro/react-anchor
- Repository: https://github.com/trendmicro-frontend/react-anchor
- Issues: https://github.com/trendmicro-frontend/react-anchor/issues
- npm.io page: https://npm.io/package/@trendmicro/react-anchor

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.5.10

## 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

- 0.5.6 (latest) — 2017-10-06
- 0.5.5 — 2017-04-20
- 0.5.4 — 2017-04-19
- 0.5.3 — 2017-04-18
- 0.5.2 — 2016-12-20
- 0.5.1 — 2016-12-13
- 0.5.0 — 2016-12-12

## README

# react-anchor [![build status](https://travis-ci.org/trendmicro-frontend/react-anchor.svg?branch=master)](https://travis-ci.org/trendmicro-frontend/react-anchor) [![Coverage Status](https://coveralls.io/repos/github/trendmicro-frontend/react-anchor/badge.svg?branch=master)](https://coveralls.io/github/trendmicro-frontend/react-anchor?branch=master)

[![NPM](https://nodei.co/npm/@trendmicro/react-anchor.png?downloads=true&stars=true)](https://nodei.co/npm/@trendmicro/react-anchor/)

React Anchor component. It handles <b>stopPropagation()</b> and <b>preventDefault()</b> when disabling an anchor tag.

Demo: https://trendmicro-frontend.github.io/react-anchor

## Installation

1. Install the latest version of [react](https://github.com/facebook/react) and [react-anchor](https://github.com/trendmicro-frontend/react-anchor):

  ```
  npm install --save react @trendmicro/react-anchor
  ```

2. Import [react-anchor](https://github.com/trendmicro-frontend/react-anchor) with <b>@trendmicro</b> scope:
  ```js
  import Anchor from '@trendmicro/react-anchor';
  ```

## Usage

```js
<Anchor
    className="btn btn-default"
    href="https://github.com"
>
    <i className="fa fa-github fa-fw" />
    GitHub
</Anchor>
```


## API

### Properties

<table>
  <thead>
    <tr>
      <th align="left">Name</th>
      <th align="left">Type</th>
      <th align="left">Default</th>
      <th align="left">Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>href</td>
      <td>String</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>onClick</td>
      <td>Function(event)</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>disabled</td>
      <td>Boolean</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>role</td>
      <td>String</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>tabIndex</td>
      <td>Number|String</td>
      <td></td>
      <td></td>
    </tr>
    <tr>
      <td>componentClass</td>
      <td>Node|String</td>
      <td>'a'</td>
      <td></td>
    </tr>
  </tbody>
</table>

## License

MIT

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