@trendmicro/react-anchor

React Anchor component

Showing:

Popularity

Downloads/wk

771

GitHub Stars

4

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

1

Size (min+gzip)

1.6KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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

Name Type Default Description
href String
onClick Function(event)
disabled Boolean
role String
tabIndex Number|String
componentClass Node|String 'a'

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100