Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/trendmicro-frontend/react-anchor
- Owner: trendmicro-frontend
- License: mit
- Created: 2016-12-12T11:30:33.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-09-22T14:03:01.000Z (about 1 year ago)
- Last Synced: 2024-10-29T04:06:44.470Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://trendmicro-frontend.github.io/react-anchor
- Size: 1.74 MB
- Stars: 4
- Watchers: 18
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - react-anchor - React Anchor component ([demo](https://trendmicro-frontend.github.io/react-anchor/)). (Trend Micro / React Components)
- awesome_frontend_development_resources - react-anchor - React Anchor component ([demo](https://trendmicro-frontend.github.io/react-anchor/)). (Trend Micro / React Components)
- awesome_frontend_development_resources - react-anchor - React Anchor component ([demo](https://trendmicro-frontend.github.io/react-anchor/)). (Trend Micro / React Components)
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