Package Exports
- @trendmicro/react-anchor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@trendmicro/react-anchor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-anchor

React Anchor component. It handles stopPropagation() and preventDefault() when disabling an anchor tag.
Demo: https://trendmicro-frontend.github.io/react-anchor
Installation
- Install the latest version of react and react-anchor:
npm install --save react @trendmicro/react-anchor- Import react-anchor with @trendmicro scope:
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
| Name | Type | Default | Description |
|---|---|---|---|
| href | String | ||
| onClick | Function(event) | ||
| disabled | Boolean | ||
| role | String | ||
| tabIndex | Number|String | ||
| componentClass | Node|String | 'a' |
License
MIT
