Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trendmicro-frontend/react-anchor

React Anchor component
https://github.com/trendmicro-frontend/react-anchor

Last synced: 26 days ago
JSON representation

React Anchor component

Awesome Lists containing this project

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 stopPropagation() and preventDefault() 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 @trendmicro scope:
```js
import Anchor from '@trendmicro/react-anchor';
```

## Usage

```js


GitHub

```

## API

### Properties



Name
Type
Default
Description




href
String




onClick
Function(event)




disabled
Boolean




role
String




tabIndex
Number|String




componentClass
Node|String
'a'


## License

MIT