react-anchor


React Anchor component. It handles stopPropagation() and preventDefault() when disabling an anchor tag.
Demo: https://trendmicro-frontend.github.io/react-anchor
Installation
npm install --save react @trendmicro/react-anchor
import Anchor from '@trendmicro/react-anchor';
Usage
<Anchor
className="btn btn-default"
href="https://github.com"
>
<i className="fa fa-github fa-fw" />
GitHub
</Anchor>
API
Properties
| href | String | | |
| onClick | Function(event) | | |
| disabled | Boolean | | |
| role | String | | |
| tabIndex | Number|String | | |
| componentClass | Node|String | 'a' | |
License
MIT