0.5.6 • Published 7 years ago

@trendmicro/react-anchor v0.5.6

Weekly downloads
1,292
License
MIT
Repository
github
Last release
7 years ago

react-anchor build status Coverage Status

NPM

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 and react-anchor:

    npm install --save react @trendmicro/react-anchor
  2. 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

License

MIT